Class PreflightDocument

java.lang.Object
org.apache.pdfbox.pdmodel.PDDocument
org.apache.pdfbox.preflight.PreflightDocument
All Implemented Interfaces:
Closeable, AutoCloseable

public class PreflightDocument extends PDDocument
  • Field Details

  • Constructor Details

    • PreflightDocument

      public PreflightDocument(Format format) throws IOException
      Create an empty preflight document and load the default configuration for the given format.
      Parameters:
      format -
      Throws:
      IOException
    • PreflightDocument

      public PreflightDocument(COSDocument doc, Format format)
      Create a preflight document based on the COSDocument and load the default configuration for the given format.
      Parameters:
      doc -
      format -
    • PreflightDocument

      public PreflightDocument(Format format, PreflightConfiguration cfg) throws IOException
      Create an empty preflight document that will use the given configuration bean to process the validation. if the configuration is null, a default configuration will be load using the given format.
      Parameters:
      format -
      cfg -
      Throws:
      IOException
    • PreflightDocument

      public PreflightDocument(COSDocument doc, Format format, PreflightConfiguration config)
      Create a preflight document based on the COSDocument that will use the given configuration bean to process the validation. if the configuration is null, a default configuration will be load using the given format.
      Parameters:
      doc -
      format -
      config -
  • Method Details