Skip to main content

decode_text_string

Function decode_text_string 

Source
pub fn decode_text_string(bytes: &[u8]) -> String
Expand description

Decodes a PDF text string: UTF-16BE with BOM, UTF-8 with BOM (PDF 2.0), otherwise byte-per-char fallback in the spirit of PDFDocEncoding (approximately Latin-1).