ExtractOptions
Are you an LLM? You can read better optimized documentation at /xnews/api/interfaces/extractoptions.md for this page in Markdown format
Import from: @xbbg/xnews
Defined in: src/extract.ts (declaration: extract.d.ts:32)
Properties
format?
readonlyoptionalformat?:string
Defined in: src/extract.ts (declaration: extract.d.ts:37)
Container format. Inferred from the file name when omitted; supply it when the bytes came from somewhere without one.
maxCharacters?
readonlyoptionalmaxCharacters?:number
Defined in: src/extract.ts (declaration: extract.d.ts:39)
Stop after this many characters of body text.
ocr?
readonlyoptionalocr?:OcrOptions
Defined in: src/extract.ts (declaration: extract.d.ts:45)
OCR server to fall back to when a PDF carries no text layer. Without it, a scan throws instead, because returning nothing would be indistinguishable from an empty document.
