Enum PDFParserConfig.IMAGE_STRATEGY

java.lang.Object
java.lang.Enum<PDFParserConfig.IMAGE_STRATEGY>
org.apache.tika.parser.pdf.PDFParserConfig.IMAGE_STRATEGY
All Implemented Interfaces:
Serializable, Comparable<PDFParserConfig.IMAGE_STRATEGY>
Enclosing class:
PDFParserConfig

public static enum PDFParserConfig.IMAGE_STRATEGY extends Enum<PDFParserConfig.IMAGE_STRATEGY>
  • Enum Constant Details

    • NONE

      public static final PDFParserConfig.IMAGE_STRATEGY NONE
    • RAW_IMAGES

      public static final PDFParserConfig.IMAGE_STRATEGY RAW_IMAGES
      This is the more modern version of PDFParserConfig.extractInlineImages
    • 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 Details

    • values

      public static PDFParserConfig.IMAGE_STRATEGY[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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