Skip to main content

encode_text_string

Function encode_text_string 

Source
pub fn encode_text_string(text: &str) -> Vec<u8> ⓘ
Expand description

Encodes a text string: PDFDocEncoding when every character has a byte there, otherwise UTF-16BE with a byte order mark (works in every version).