Enum PDFParserConfig.IMAGE_STRATEGY

    • Enum Constant Detail

      • RENDER_PAGES_BEFORE_PARSE

        public static final PDFParserConfig.IMAGE_STRATEGY RENDER_PAGES_BEFORE_PARSE
        If you want the rendered images, and you don't care that there's markup in the xhtml handler per page then go with this option. For some rendering engines, it is faster to render the full document upfront than to parse a page, render a page, etc.
      • RENDER_PAGES_AT_PAGE_END

        public static final PDFParserConfig.IMAGE_STRATEGY RENDER_PAGES_AT_PAGE_END
        This renders each page, one at a time, at the end of the page. For some rendering engines, this may be slower, but it allows the writing of image metadata into the xhtml in the proper location
    • Method Detail

      • values

        public static PDFParserConfig.IMAGE_STRATEGY[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PDFParserConfig.IMAGE_STRATEGY c : PDFParserConfig.IMAGE_STRATEGY.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PDFParserConfig.IMAGE_STRATEGY valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null