Package org.apache.pdfbox.tools
Class ExportFDF
- java.lang.Object
-
- org.apache.pdfbox.tools.ExportFDF
-
public class ExportFDF extends java.lang.ObjectThis example will take a PDF document and fill the fields with data from the FDF fields.
-
-
Constructor Summary
Constructors Constructor Description ExportFDF()Creates a new instance of ImportFDF.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(FDFDocument doc)Close the document.voidclose(PDDocument doc)Close the document.private voidexportFDF(java.lang.String[] args)static voidmain(java.lang.String[] args)This will import an fdf document and write out another pdf.private static voidusage()This will print out a message telling how to use this example.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will import an fdf document and write out another pdf.
see usage() for commandline- Parameters:
args- command line arguments- Throws:
java.io.IOException- in case the file can not be read or the data can not be exported.
-
exportFDF
private void exportFDF(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
usage
private static void usage()
This will print out a message telling how to use this example.
-
close
public void close(FDFDocument doc) throws java.io.IOException
Close the document.- Parameters:
doc- The doc to close.- Throws:
java.io.IOException- If there is an error closing the document.
-
close
public void close(PDDocument doc) throws java.io.IOException
Close the document.- Parameters:
doc- The doc to close.- Throws:
java.io.IOException- If there is an error closing the document.
-
-