Class PdfExtractorOptions
Knobs for PdfTextExtractor (spec 7.4). Set them through AddPdfExtractor(configure).
public sealed class PdfExtractorOptions
- Inheritance
-
PdfExtractorOptions
- Inherited Members
Properties
- JoinHyphenatedLineBreaks
Rejoin a word split by a hyphen at a line break —
extra-/ordinarybecomesextraordinarywhen the next line starts lower-case. On.
- MaxStackDepth
PdfPig's recursion guard for nested resources and forms. 50.
- PageBudget
Cumulative parse budget for one document, checked BETWEEN pages. Not an abort: PdfPig's per-page surface is synchronous and takes no CancellationToken, so a page that has started always finishes. When the budget is passed at a page boundary the pages already parsed are kept, extraction stops, and the document is DocumentPageBudgetExceeded (6107) naming the page reached. 20 s.
- Passwords
Tried in order against an encrypted document, after the empty user password. When none opens it the document is DocumentEncrypted (6103). Empty.
- ReadingOrder
The per-page reading-order strategy. ContentOrder.
- SkipMissingFonts
ON by default, and that is a behaviour-changing default: on a font-name miss PdfPig otherwise reads and parses the name table of every file in the system font directory — a multi-second stall on Android the first time such a PDF appears. Spec 17 item 6 measures what the flag costs in extraction quality; until it is measured the default stands.
- UseActualText
Honour
/ActualTextmarked content when present. On.
- UseLenientParsing
PdfPig's lenient parser, which recovers a damaged cross-reference by scanning. On.