pdf-lite - v1.0.1
    Preparing search index...

    Function hexBytesToBytes

    • Converts a byte array containing hexadecimal ASCII characters to raw bytes. Each pair of hex character bytes is converted to a single byte value.

      Parameters

      • hex: ByteArray

        The byte array containing hex character codes.

      Returns ByteArray

      A byte array with decoded values.

      // 'FF' as bytes (0x46, 0x46) becomes 0xFF
      hexBytesToBytes(new Uint8Array([70, 70])) // Returns Uint8Array([255])