Class PreflightDocument

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PreflightDocument
    extends PDDocument
    • Constructor Detail

      • PreflightDocument

        public PreflightDocument​(Format format)
                          throws java.io.IOException
        Create an empty preflight document and load the default configuration for the given format.
        Parameters:
        format -
        Throws:
        java.io.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 java.io.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:
        java.io.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 -