Class ImportXFDF

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Integer>

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

      Fields 
      Modifier and Type Field Description
      private java.io.File infile  
      private java.io.File outfile  
      private java.io.PrintStream SYSERR  
      private java.io.File xfdffile  
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportXFDF()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer call()  
      void importFDF​(PDDocument pdfDocument, FDFDocument fdfDocument)
      This will takes the values from the fdf document and import them into the PDF document.
      static void main​(java.lang.String[] args)
      This will import an fdf document and write out another pdf.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYSERR

        private final java.io.PrintStream SYSERR
      • infile

        private java.io.File infile
      • outfile

        private java.io.File outfile
      • xfdffile

        private java.io.File xfdffile
    • Constructor Detail

      • ImportXFDF

        public ImportXFDF()
        Constructor.
    • Method Detail

      • importFDF

        public void importFDF​(PDDocument pdfDocument,
                              FDFDocument fdfDocument)
                       throws java.io.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:
        java.io.IOException - If there is an error setting the data in the field.
      • main

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

        public java.lang.Integer call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Integer>