Class ExportFDF

java.lang.Object
org.apache.pdfbox.tools.ExportFDF

public class ExportFDF extends Object
This example will take a PDF document and fill the fields with data from the FDF fields.
  • Constructor Details

    • ExportFDF

      public ExportFDF()
      Creates a new instance of ImportFDF.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      This will import an fdf document and write out another pdf.
      see usage() for commandline
      Parameters:
      args - command line arguments
      Throws:
      IOException - in case the file can not be read or the data can not be exported.
    • exportFDF

      private void exportFDF(String[] args) throws IOException
      Throws:
      IOException
    • usage

      private static void usage()
      This will print out a message telling how to use this example.
    • close

      public void close(FDFDocument doc) throws IOException
      Close the document.
      Parameters:
      doc - The doc to close.
      Throws:
      IOException - If there is an error closing the document.
    • close

      public void close(PDDocument doc) throws IOException
      Close the document.
      Parameters:
      doc - The doc to close.
      Throws:
      IOException - If there is an error closing the document.