Package FLOTF

Class Autofiller


  • public class Autofiller
    extends java.lang.Object
    Auto fills the F9006 pdf form based on the information stored in PartInfo and TOParser
    Author:
    Bernard Chan, Sonali Loomba
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.pdfbox.pdmodel.PDDocument f9006
      The F9006 pdf document as a PDDocument
      private static java.lang.String f9006path
      The F9006 pdf document file path
    • Constructor Summary

      Constructors 
      Constructor Description
      Autofiller()
      Autofiller constructor that creates a copy of the blank F9006 PDF Document
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearF9006​(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm pDAcroForm)
      Clears text fields from filled out F9006 PDF
      java.io.File createF9006()
      Creates a new F9006 for new part order
      void fill9006()
      Fills out the F9006 form
      static java.lang.String getF9006path()
      Return F9006 file path
      • Methods inherited from class java.lang.Object

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

      • f9006

        private final org.apache.pdfbox.pdmodel.PDDocument f9006
        The F9006 pdf document as a PDDocument
      • f9006path

        private static java.lang.String f9006path
        The F9006 pdf document file path
    • Constructor Detail

      • Autofiller

        public Autofiller()
                   throws java.io.IOException
        Autofiller constructor that creates a copy of the blank F9006 PDF Document
        Throws:
        java.io.IOException - in case of error loading PDDocument or opening File
    • Method Detail

      • fill9006

        public void fill9006()
        Fills out the F9006 form
      • createF9006

        public java.io.File createF9006()
                                 throws java.io.IOException
        Creates a new F9006 for new part order
        Returns:
        File of newly created F9006 PDF
        Throws:
        java.io.IOException - if file path is unable to load
      • clearF9006

        public void clearF9006​(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm pDAcroForm)
                        throws java.io.IOException
        Clears text fields from filled out F9006 PDF
        Parameters:
        pDAcroForm - F9006 PDF as a PDAcroForm
        Throws:
        java.io.IOException - if field is unable to load
      • getF9006path

        public static java.lang.String getF9006path()
        Return F9006 file path
        Returns:
        String of F9006 file path