aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-parse-content.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdf-parse-content.cc')
-rw-r--r--examples/pdf-parse-content.cc3
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)
{