Skip to main content

text_strings

Function text_strings 

Source
pub fn text_strings(pdf: &[u8]) -> Vec<String>
Expand description

Every text string a PDF this module wrote shows, in page order: each (…) Tj literal read back from the file’s own bytes — escapes undone and WinAnsi decoded, so a ⌀ the writer substituted reads Ø and a U+2212 a hyphen, which is what the file says. What the export door reports ABOUT the file, so a script can assert the drawing’s text without a PDF reader.