Package org.apache.tika.parser.pdf
Class MarkedContentConfig
java.lang.Object
org.apache.tika.parser.pdf.MarkedContentConfig
- All Implemented Interfaces:
Serializable
How the parser uses a PDF's structure tree (marked content / tagged PDF).
See
PDFMarkedContent2XHTML.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatvoidsetMaxDanglingRatio(float maxDanglingRatio) AUTO gate: the largest fraction of the tree's leaves for a page that may reference content the page does not have.voidsetMinCoverage(float minCoverage) AUTO gate: the smallest fraction of a page's text (artifacts included) that the structure tree must claim for the page to use tags.voidsetStrategy(MarkedContentConfig.Strategy strategy)
-
Constructor Details
-
MarkedContentConfig
public MarkedContentConfig()
-
-
Method Details
-
getStrategy
-
setStrategy
-
getMinCoverage
public float getMinCoverage() -
setMinCoverage
public void setMinCoverage(float minCoverage) AUTO gate: the smallest fraction of a page's text (artifacts included) that the structure tree must claim for the page to use tags. Above 1 every page falls back. -
getMaxDanglingRatio
public float getMaxDanglingRatio() -
setMaxDanglingRatio
public void setMaxDanglingRatio(float maxDanglingRatio) AUTO gate: the largest fraction of the tree's leaves for a page that may reference content the page does not have.
-