Class ImportXFDF

java.lang.Object
org.apache.pdfbox.tools.ImportXFDF
All Implemented Interfaces:
Callable<Integer>

public class ImportXFDF extends Object implements Callable<Integer>
This example will take a PDF document and fill the fields with data from the XFDF fields.
  • Field Details

    • SYSERR

      private final PrintStream SYSERR
    • infile

      private File infile
    • outfile

      private File outfile
    • xfdffile

      private File xfdffile
  • Constructor Details

    • ImportXFDF

      public ImportXFDF()
      Constructor.
  • Method Details

    • importFDF

      public void importFDF(PDDocument pdfDocument, 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

      public static void main(String[] args)
      This will import an fdf document and write out another pdf.
      see usage() for commandline
      Parameters:
      args - command line arguments
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>