Class PagesConfig

java.lang.Object
org.apache.tika.parser.pages.PagesConfig
All Implemented Interfaces:
Serializable

public class PagesConfig extends Object implements Serializable
What a parser does with a document's pages when the document has to be rendered to get pixels: how it renders (render), where a page's text comes from (text), the recognizer budget and verdict (ocr), what is released to inference bindings (inference), and whether renders are emitted as embedded documents (emit). One block for every rendering parser; the PDF parser and the EMF/WMF parsers read it.

Every field is nullable so an instance can be an overlay, and the same class is read at four layers, later ones winning per field: the config's "parse-context": {"pages": ...}, a request's "pages" (which replaces the config's, as every parse-context key does), a parser's own "pages" under "parsers", and that parser's "pages" in the request. resolve(org.apache.tika.parser.ParseContext, org.apache.tika.parser.pages.PagesConfig...) folds them onto defaults().

Since:
Apache Tika 4.1
See Also: