Skip to main content

Module pdf_string

Module pdf_string 

Source
Expand description

Decode PDF string objects (ISO 32000-1 §7.9.2).

Handles:

  • UTF-16BE with BOM (FE FF) — common for /ActualText / /Alt
  • UTF-8 when valid
  • PDFDocEncoding fallback for Latin text

Functions§

decode_pdf_string
Decode a PDF literal/hex string into Unicode.