Class MarkedContentConfig

java.lang.Object
org.apache.tika.parser.pdf.MarkedContentConfig
All Implemented Interfaces:
Serializable

public class MarkedContentConfig extends Object implements Serializable
How the parser uses a PDF's structure tree (marked content / tagged PDF). See PDFMarkedContent2XHTML.
See Also:
  • Constructor Details

    • MarkedContentConfig

      public MarkedContentConfig()
  • Method Details

    • getStrategy

      public MarkedContentConfig.Strategy getStrategy()
    • setStrategy

      public void setStrategy(MarkedContentConfig.Strategy strategy)
    • 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.