diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdf-parse-content.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pdf-parse-content.cc b/examples/pdf-parse-content.cc index a16b0bd3..620c1bb6 100644 --- a/examples/pdf-parse-content.cc +++ b/examples/pdf-parse-content.cc @@ -75,9 +75,8 @@ int main(int argc, char* argv[]) } QPDFObjectHandle page = pages.at(pageno-1); - QPDFObjectHandle contents = page.getKey("/Contents"); ParserCallbacks cb; - QPDFObjectHandle::parseContentStream(contents, &cb); + page.parsePageContents(&cb); } catch (std::exception& e) { |