pdfextract API
    Preparing search index...

    Interface PdfLimits

    Positive safe-integer resource budgets. Unspecified values use DEFAULT_LIMITS; memory is an estimate, not an OS sandbox.

    interface PdfLimits {
        maxCachedRuleLines?: number;
        maxDecodedBytes?: number;
        maxImagePixels?: number;
        maxInputBytes?: number;
        maxOcrPixels?: number;
        maxPages?: number;
    }
    Index
    maxCachedRuleLines?: number

    Ruling lines kept for table detection across the document; default 200,000 (about 8 MB). Pages scanned for tables keep their lines for later calls; beyond this budget the pages cached first are dropped and scanned again when needed. A page draws at most 5,000 lines, so a budget below that can leave a busy page uncached.

    maxDecodedBytes?: number

    Estimated decoded working-memory budget; default 1 GiB, estimated at 16 bytes per pixel.

    maxImagePixels?: number

    Maximum native image width × height; default 64 million pixels.

    maxInputBytes?: number

    Maximum whole-PDF input length in bytes; default 256 MiB.

    maxOcrPixels?: number

    Maximum pixels in a separately bounded OCR working raster; default 16 million. Page renders target 300 DPI and low-resolution image regions are upscaled toward it within this budget; larger images are reduced (area average) to fit it rather than skipped.

    maxPages?: number

    Maximum PDF page count; default 10,000.