org.pdfbox.examples.fdf

Class PrintFields


public class PrintFields
extends java.lang.Object

This example will take a PDF document and print all the fields from the file.
Version:
$Revision: 1.16 $
Author:
Ben Litchfield

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.

Method Details

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:
CryptographyException - If there is an error decrypting the document.

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.