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
public static enum PDFParserConfig.IMAGE_STRATEGY extends Enum<PDFParserConfig.IMAGE_STRATEGY>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
RAW_IMAGES
This is the more modern version ofPDFParserConfig.extractInlineImages
RENDER_PAGES_AT_PAGE_END
This renders each page, one at a time, at the end of the page.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PDFParserConfig.IMAGE_STRATEGY
valueOf(String name)
Returns 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 Detail
-
NONE
public static final PDFParserConfig.IMAGE_STRATEGY NONE
-
RAW_IMAGES
public static final PDFParserConfig.IMAGE_STRATEGY RAW_IMAGES
This is the more modern version ofPDFParserConfig.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 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 nameNullPointerException
- if the argument is null
-
-