Create a new parser with LoadParameters.
Converts Node.js Buffer data to Uint8Array automatically and ensures a default verbosity level.
Initialization parameters.
Extract embedded images from requested pages.
Behavior notes:
params.imageThreshold (width OR height) are skipped.ParseParameters controlling page selection, thresholds and output format.
Promise
Load document-level metadata (info, outline, permissions, page labels) and optionally gather per-page link details.
Parse options; set parsePageInfo to collect per-page metadata described in ParseParameters.
Aggregated document metadata in an InfoResult.
Render pages to raster screenshots.
Behavior notes:
ParseParameters controlling page selection and render options.
Promise
Detect and extract tables from pages by analysing vector drawing operators, then populate cells with text.
Behavior notes:
ParseParameters controlling which pages to analyse (partial/first/last).
Promise
Extract plain text for each requested page, optionally enriching hyperlinks and enforcing line or cell separators.
Parse options controlling pagination, link handling, and line/cell thresholds.
A TextResult containing page-wise text and a concatenated document string.
StaticsetOptionalworkerSrc: string
Loads PDF documents and exposes helpers for text, image, table, metadata, and screenshot extraction.