Package org.apache.tika.parser.pdf
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
-
Enum Constant Summary
Enum ConstantDescriptionThis is the more modern version ofPDFParserConfig.extractInlineImages
This renders each page, one at a time, at the end of the page.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PDFParserConfig.IMAGE_STRATEGY[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
RAW_IMAGES
This is the more modern version ofPDFParserConfig.extractInlineImages
-
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
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
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
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 nameNullPointerException
- if the argument is null
-