public class ImportXFDF
extends java.lang.Object
Constructor and Description |
---|
ImportXFDF()
Creates a new instance of ImportFDF.
|
Modifier and Type | Method and Description |
---|---|
void |
close(FDFDocument doc)
Close the document.
|
void |
close(PDDocument doc)
Close the document.
|
void |
importFDF(PDDocument pdfDocument,
FDFDocument fdfDocument)
This will takes the values from the fdf document and import them into the
PDF document.
|
private void |
importXFDF(java.lang.String[] args) |
static void |
main(java.lang.String[] args)
This will import an fdf document and write out another pdf.
|
private static void |
usage()
This will print out a message telling how to use this example.
|
public void importFDF(PDDocument pdfDocument, FDFDocument fdfDocument) throws java.io.IOException
pdfDocument
- The document to put the fdf data into.fdfDocument
- The FDF document to get the data from.java.io.IOException
- If there is an error setting the data in the field.public static void main(java.lang.String[] args) throws java.io.IOException
args
- command line argumentsjava.io.IOException
- If there is an error importing the FDF document.private void importXFDF(java.lang.String[] args) throws java.io.IOException
java.io.IOException
private static void usage()
public void close(FDFDocument doc) throws java.io.IOException
doc
- The doc to close.java.io.IOException
- If there is an error closing the document.public void close(PDDocument doc) throws java.io.IOException
doc
- The doc to close.java.io.IOException
- If there is an error closing the document.