@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Interface PdfExportOptions

    Options for export("pdf", ...). The host supplies everything wd_io_engine needs.

    interface PdfExportOptions {
        ioEngine: PdfIoEngine;
        font: ArrayBuffer | Uint8Array<ArrayBufferLike>;
        fontResolver?: (
            family: string,
        ) =>
            | Uint8Array<ArrayBufferLike>
            | Promise<Uint8Array<ArrayBufferLike> | null>
            | null;
        imageQuality?: number;
        decodeImage?: PdfDecodeImage;
    }
    Index
    ioEngine: PdfIoEngine

    The loaded @squareys/wd-io-engine module (its convert export).

    font: ArrayBuffer | Uint8Array<ArrayBufferLike>

    TTF/OTF bytes for the default face. Required: wd_io_engine runs in its own wasm, gets no fonts from the deck blob, and lays out every run it cannot resolve with this face.

    fontResolver?: (
        family: string,
    ) =>
        | Uint8Array<ArrayBufferLike>
        | Promise<Uint8Array<ArrayBufferLike> | null>
        | null

    Resolves a deck font family to TTF/OTF bytes for per-run embedding. Without it, all text renders in font, so layout and glyphs differ from the live view for any other family.

    imageQuality?: number

    JPEG quality (0..1) for raster images in the PDF. Default 0.85.

    decodeImage?: PdfDecodeImage

    Image decoder for Node/Bun, where createImageBitmap does not exist. PNGs decode with a built-in decoder when omitted; JPEG and other formats need this hook or print a placeholder.