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

    Interface PdfIoEngine

    The slice of @squareys/wd-io-engine the PDF export needs. The host loads that package and passes it in, so the SDK keeps no runtime dependency on it and never starts a second wasm.

    interface PdfIoEngine {
        convert(
            input: Uint8Array,
            options: {
                from: "webdeck";
                to: "pdf";
                font: ArrayBuffer | Uint8Array<ArrayBufferLike>;
                fontResolver?: (
                    family: string,
                ) =>
                    | Uint8Array<ArrayBufferLike>
                    | Promise<Uint8Array<ArrayBufferLike> | null>
                    | null;
                imageQuality?: number;
                decodeImage?: PdfDecodeImage;
            },
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }
    Index
    • Parameters

      • input: Uint8Array
      • options: {
            from: "webdeck";
            to: "pdf";
            font: ArrayBuffer | Uint8Array<ArrayBufferLike>;
            fontResolver?: (
                family: string,
            ) =>
                | Uint8Array<ArrayBufferLike>
                | Promise<Uint8Array<ArrayBufferLike> | null>
                | null;
            imageQuality?: number;
            decodeImage?: PdfDecodeImage;
        }

      Returns Promise<Uint8Array<ArrayBufferLike>>