pdfrx_web
    Preparing search index...

    Function imageBytesToPdf

    • Converts encoded image bytes into a one-page PDF (one page showing the image), returning the PDF bytes. The temporary document is disposed before returning, so the result is a standalone PDF that can be opened by any engine.

      Parameters

      • engine: PdfrxEngine

        The engine value (PdfrxEngine).

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

        The binary data to process.

      • OptionalimageDecoder: PdfImageDecoder

        The imageDecoder value (PdfImageDecoder).

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The resulting Promise.