diff options
author | Jay Berkenbilt <ejb@ql.org> | 2020-12-31 19:57:21 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-01-02 17:33:36 +0100 |
commit | 6154221edbb0e17e77da7defeeac5fe53121ef57 (patch) | |
tree | ca11739d987b2072fe63673d38bfadfc79fa886b /examples | |
parent | 63ea46193d4ce4cbd1dc37becad4645b0e75769b (diff) | |
download | qpdf-6154221edbb0e17e77da7defeeac5fe53121ef57.tar.zst |
QPDFPageObjectHelper: filterPageContents -> filterContents + form XObject
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdf-count-strings.cc | 9 | ||||
-rw-r--r-- | examples/pdf-filter-tokens.cc | 2 |
2 files changed, 5 insertions, 6 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 diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc index d3ebf54c..e764a86a 100644 --- a/examples/pdf-filter-tokens.cc +++ b/examples/pdf-filter-tokens.cc @@ -2,7 +2,7 @@ // This example illustrates the use of QPDFObjectHandle::TokenFilter // with addContentTokenFilter. Please see comments inline for details. // See also pdf-count-strings.cc for a use of -// QPDFObjectHandle::TokenFilter with filterPageContents. +// QPDFObjectHandle::TokenFilter with filterContents. // #include <iostream> |