diff --git a/src/src/Plugins/Pdf/pdf_hummus_renderer.cpp b/src/src/Plugins/Pdf/pdf_hummus_renderer.cpp index d686d82..0512fd2 100644 --- a/src/src/Plugins/Pdf/pdf_hummus_renderer.cpp +++ b/src/src/Plugins/Pdf/pdf_hummus_renderer.cpp @@ -1983,6 +1983,49 @@ std_string_to_string (std::string str) { return r; } +// At least in outlines a single paren will break the PDF and no more +// outlines will show up after it. Does it need this for other PDF +// strings? +// +// Jim King, Document Management — Portable Document Format — Part 1: +// PDF 1.7 (Adobe Sys. Inc., First ed. 2008), +// §7.3.4.2, Literal Strings, Table 3, Escape sequences in literal strings +// +// Fixme? This does not handle octal character sequences \nnn. Does it +// ever need to? +// +string +escape_string (string s) { + int i, n= N(s); + string r; + for (i=0; i& it, ObjectIDType parentId,