pdfextract API
    Preparing search index...

    Interface ExtractedImage

    An independently owned PNG export that remains valid after the PDF is closed.

    interface ExtractedImage {
        composited: "none" | "above" | "page";
        data: Uint8Array<ArrayBuffer>;
        height: number;
        imageId: string;
        mimeType: "image/png";
        variant: "full" | "thumbnail";
        width: number;
    }
    Index
    composited: "none" | "above" | "page"

    none: the exact stored pixels. above: a rendered composite of the image and everything drawn above it. page: a rendered composite in which the image's own draw could not be isolated, so content drawn below shows through transparent pixels too.

    data: Uint8Array<ArrayBuffer>

    Owned PNG bytes; never a live WASM view or a detached caller buffer.

    height: number

    Actual output height in pixels; swapped relative to the native height for quarter-turn placements.

    imageId: string

    Asset identifier used for the export.

    mimeType: "image/png"

    MIME type of the encoded output.

    variant: "full" | "thumbnail"

    full preserves native dimensions; thumbnail is an explicitly bounded preview.

    width: number

    Actual output width in pixels; swapped relative to the native width for quarter-turn placements.