Class ImportFDF

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

public class ImportFDF extends Object implements Callable<Integer>
This example will take a PDF document and fill the fields with data from the FDF fields.
Author:
Ben Litchfield
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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
    main(String[] args)
    This will import an fdf document and write out another pdf.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImportFDF

      public ImportFDF()
      Constructor.
  • 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

      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>