Skip to main content

string_literal

Function string_literal 

Source
pub fn string_literal(text: &str) -> String
Expand description

text as a PDF string literal’s CONTENTS (no parentheses): WinAnsi bytes, with (, ) and \ escaped and everything outside printable ASCII written as a three-digit octal escape, so a content stream stays readable ASCII.