Package org.apache.pdfbox.tools
Class ImportFDF
- java.lang.Object
-
- org.apache.pdfbox.tools.ImportFDF
-
public class ImportFDF extends java.lang.ObjectThis example will take a PDF document and fill the fields with data from the FDF fields.- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description ImportFDF()Creates a new instance of ImportFDF.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.pdfbox.pdmodel.fdf.FDFDocument doc)Close the document.voidclose(org.apache.pdfbox.pdmodel.PDDocument doc)Close the document.voidimportFDF(org.apache.pdfbox.pdmodel.PDDocument pdfDocument, org.apache.pdfbox.pdmodel.fdf.FDFDocument fdfDocument)This will takes the values from the fdf document and import them into the PDF document.static voidmain(java.lang.String[] args)This will import an fdf document and write out another pdf.
-
-
-
Method Detail
-
importFDF
public void importFDF(org.apache.pdfbox.pdmodel.PDDocument pdfDocument, org.apache.pdfbox.pdmodel.fdf.FDFDocument fdfDocument) throws java.io.IOExceptionThis will takes the values from the fdf document and import them into the PDF document.- Parameters:
pdfDocument- The document to put the fdf data into.fdfDocument- The FDF document to get the data from.- Throws:
java.io.IOException- If there is an error setting the data in the field.
-
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- If there is an error importing the FDF document.
-
close
public void close(org.apache.pdfbox.pdmodel.fdf.FDFDocument doc) throws java.io.IOExceptionClose the document.- Parameters:
doc- The doc to close.- Throws:
java.io.IOException- If there is an error closing the document.
-
close
public void close(org.apache.pdfbox.pdmodel.PDDocument doc) throws java.io.IOExceptionClose the document.- Parameters:
doc- The doc to close.- Throws:
java.io.IOException- If there is an error closing the document.
-
-