Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

ExtractOptions

Options for Document.extract.

F extends ExtractFormat = ExtractFormat

readonly optional chunk?: ChunkOptions

How chunks are cut ("chunks", and "json" to include them).


readonly optional dehyphenate?: boolean

Join words hyphenated across lines; on by default.


readonly optional drop?: object

keepSpans keeps each dropped run’s text in its dropped entry (JSON), for auditing a file. furniture (on by default) drops running headers, footers, page numbers and artifact-marked text too.

readonly optional furniture?: boolean

readonly optional keepSpans?: boolean


readonly format: F

What to return: Markdown or plain text as a string, the JSON as an Extraction, or Chunks.


readonly optional pageMarkers?: boolean

Write <!-- page N --> before each page’s first block (Markdown, chunks and the JSON’s text ranges).


readonly optional pages?: readonly number[]

The 0-based page indices to extract, in this order; every page by default.


readonly optional readingOrder?: any

Where the reading order comes from; "auto" by default.


readonly optional tables?: any

Which table detectors run; "lattice" by default.