From 4bb3046f0b139337a00e9182c9b47d1a3f8f8bb3 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 17 Feb 2018 18:47:57 -0500 Subject: Properly handle strings with PDF Doc Encoding (fixes #179) The QPDF_String::getUTF8Val() method was not treating strings that weren't explicitly Unicode as PDF Doc Encoded. This only affects characters in the range 0x80 through 0xa0. --- examples/qtest/bookmarks.test | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples/qtest/bookmarks.test') diff --git a/examples/qtest/bookmarks.test b/examples/qtest/bookmarks.test index 655be2e6..395357e3 100644 --- a/examples/qtest/bookmarks.test +++ b/examples/qtest/bookmarks.test @@ -48,4 +48,10 @@ $td->runtest("bookmarks deleted", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); -$td->report(10); +$td->runtest("non-trivial pdf doc to unicode", + {$td->COMMAND => "pdf-bookmarks issue-179.pdf"}, + {$td->FILE => "issue-179.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +$td->report(11); -- cgit v1.2.3-70-g09d2