pdf-lite - v1.3.0
    Preparing search index...
    • Decodes a byte array from PDFDocEncoding to a JavaScript string.

      PDFDocEncoding is the default encoding for PDF strings:

      • Bytes 0-127: Standard ASCII
      • Bytes 128-159: Special Unicode characters (see PDF spec)
      • Bytes 160-255: ISO Latin-1 (ISO 8859-1)

      Parameters

      Returns string

      The decoded string.

      // Decode "Hello" (ASCII)
      decodeFromPDFDocEncoding(new Uint8Array([72, 101, 108, 108, 111]))

      // Decode with special character (0x80 = bullet)
      decodeFromPDFDocEncoding(new Uint8Array([72, 0x80, 105]))