aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-count-strings.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-12-31 19:57:21 +0100
committerJay Berkenbilt <ejb@ql.org>2021-01-02 17:33:36 +0100
commit6154221edbb0e17e77da7defeeac5fe53121ef57 (patch)
treeca11739d987b2072fe63673d38bfadfc79fa886b /examples/pdf-count-strings.cc
parent63ea46193d4ce4cbd1dc37becad4645b0e75769b (diff)
downloadqpdf-6154221edbb0e17e77da7defeeac5fe53121ef57.tar.zst
QPDFPageObjectHelper: filterPageContents -> filterContents + form XObject
Diffstat (limited to 'examples/pdf-count-strings.cc')
-rw-r--r--examples/pdf-count-strings.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/pdf-count-strings.cc b/examples/pdf-count-strings.cc
index b5091a86..3b78ac76 100644
--- a/examples/pdf-count-strings.cc
+++ b/examples/pdf-count-strings.cc
@@ -1,8 +1,7 @@
//
// This example illustrates the use of QPDFObjectHandle::TokenFilter
-// with filterPageContents. See also pdf-filter-tokens.cc for an
-// example that uses QPDFObjectHandle::TokenFilter with
-// addContentTokenFilter.
+// with filterContents. See also pdf-filter-tokens.cc for an example
+// that uses QPDFObjectHandle::TokenFilter with addContentTokenFilter.
//
#include <iostream>
@@ -108,14 +107,14 @@ int main(int argc, char* argv[])
if (pageno % 2)
{
// Ignore output for odd pages.
- ph.filterPageContents(&counter);
+ ph.filterContents(&counter);
}
else
{
// Write output to stdout for even pages.
Pl_StdioFile out("stdout", stdout);
std::cout << "% Contents of page " << pageno << std::endl;
- ph.filterPageContents(&counter, &out);
+ ph.filterContents(&counter, &out);
std::cout << "\n% end " << pageno << std::endl;
}
std::cout << "Page " << pageno