org.apache.pdfbox.examples.fdf
Class PrintFields

java.lang.Object
  extended by org.apache.pdfbox.examples.fdf.PrintFields

public class PrintFields
extends Object

This example will take a PDF document and print all the fields from the file.

Version:
$Revision: 1.16 $
Author:
Ben Litchfield

Constructor Summary
PrintFields()
           
 
Method Summary
static void main(String[] args)
          This will read a PDF file and print out the form elements.
 void printFields(PDDocument pdfDocument)
          This will print all the fields from the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintFields

public PrintFields()
Method Detail

printFields

public void printFields(PDDocument pdfDocument)
                 throws IOException
This will print all the fields from the document.

Parameters:
pdfDocument - The PDF to get the fields from.
Throws:
IOException - If there is an error getting the fields.

main

public static void main(String[] args)
                 throws IOException,
                        CryptographyException
This will read a PDF file and print out the form elements.
see usage() for commandline

Parameters:
args - command line arguments
Throws:
IOException - If there is an error importing the FDF document.
CryptographyException - If there is an error decrypting the document.


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.