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

    Type Alias PdfDecodeImage

    PdfDecodeImage: (
        bytes: Uint8Array,
        mime: string,
    ) =>
        | { width: number; height: number; rgba: Uint8Array }
        | Promise<{ width: number; height: number; rgba: Uint8Array }>

    Headless image decoder for PDF export: bytes plus sniffed MIME in, straight RGBA out.

    Type Declaration

      • (
            bytes: Uint8Array,
            mime: string,
        ):
            | { width: number; height: number; rgba: Uint8Array }
            | Promise<{ width: number; height: number; rgba: Uint8Array }>
      • Parameters

        Returns
            | { width: number; height: number; rgba: Uint8Array }
            | Promise<{ width: number; height: number; rgba: Uint8Array }>