Class PDFFormGenerator

java.lang.Object
com.jalios.jcms.pdf.form.PDFFormGenerator

public class PDFFormGenerator extends Object
  • Constructor Details

    • PDFFormGenerator

      public PDFFormGenerator(File file) throws org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, IOException
      Throws:
      org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException
      IOException
    • PDFFormGenerator

      public PDFFormGenerator(InputStream inputStream) throws org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, IOException
      Throws:
      org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException
      IOException
  • Method Details

    • getPdDoc

      protected org.apache.pdfbox.pdmodel.PDDocument getPdDoc()
    • getPdCatalog

      protected org.apache.pdfbox.pdmodel.PDDocumentCatalog getPdCatalog()
    • getPdAcroForm

      protected org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm getPdAcroForm()
    • getFieldMap

      public Map<String,Object> getFieldMap()
    • addFieldValue

      public void addFieldValue(String field, Object value)
    • addFieldMap

      public void addFieldMap(Map<String,Object> map)
    • getTopFields

      public List<org.apache.pdfbox.pdmodel.interactive.form.PDField> getTopFields()
    • getFieldTree

      public PDFieldTree getFieldTree() throws IOException
      Throws:
      IOException
    • getFieldById

      public org.apache.pdfbox.pdmodel.interactive.form.PDField getFieldById(String id) throws IOException
      Throws:
      IOException
    • getFieldByAlternateName

      public org.apache.pdfbox.pdmodel.interactive.form.PDField getFieldByAlternateName(String name) throws IOException
      Throws:
      IOException
    • generatePDF

      public void generatePDF(OutputStream out) throws IOException
      Throws:
      IOException
    • generatePDF

      public void generatePDF(OutputStream out, boolean flatten) throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] args)