Package org.apache.pdfbox.tools
Class ImportXFDF
java.lang.Object
org.apache.pdfbox.tools.ImportXFDF
This example will take a PDF document and fill the fields with data from the
XFDF fields.
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(org.apache.pdfbox.pdmodel.fdf.FDFDocument doc) Close the document.void
close
(org.apache.pdfbox.pdmodel.PDDocument doc) Close the document.void
importFDF
(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 void
This will import an fdf document and write out another pdf.
-
Constructor Details
-
ImportXFDF
public ImportXFDF()Creates a new instance of ImportFDF.
-
-
Method Details
-
importFDF
public void importFDF(org.apache.pdfbox.pdmodel.PDDocument pdfDocument, org.apache.pdfbox.pdmodel.fdf.FDFDocument fdfDocument) throws IOException This 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:
IOException
- If there is an error setting the data in the field.
-
main
This will import an fdf document and write out another pdf.
see usage() for commandline- Parameters:
args
- command line arguments- Throws:
IOException
- If there is an error importing the FDF document.
-
close
Close the document.- Parameters:
doc
- The doc to close.- Throws:
IOException
- If there is an error closing the document.
-
close
Close the document.- Parameters:
doc
- The doc to close.- Throws:
IOException
- If there is an error closing the document.
-