pdfrx_web
    Preparing search index...

    Function readJpegSize

    • Reads a JPEG's pixel dimensions from its SOFn marker without decoding the image, so JPEG pages can be sized without a pixel decoder. Throws if the bytes are not a JPEG whose size can be found.

      Parameters

      • bytes: Uint8Array

        The binary data to process.

      Returns { height: number; width: number }

      The updated result.