pdf-lite - v1.0.1
    Preparing search index...
    • Converts a hexadecimal string (optionally with angle brackets) to a byte array. Strips any surrounding angle brackets before conversion.

      Parameters

      • str: string

        The hexadecimal string to convert, optionally wrapped in angle brackets.

      Returns ByteArray

      A byte array with the decoded values.

      stringToHexBytes('<FF00>') // Returns Uint8Array([255, 0])
      stringToHexBytes('FF00') // Also returns Uint8Array([255, 0])