diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-09-26 20:29:26 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-11-19 20:10:42 +0100 |
commit | f69ed209d093155e9921487056142370d0a6d0ce (patch) | |
tree | 9778601b165d4fde804f56671051423cfbbecab8 /examples/pdf-custom-filter.cc | |
parent | 9ebabd19538512b6515696b164a17b90060a75c3 (diff) | |
download | qpdf-f69ed209d093155e9921487056142370d0a6d0ce.tar.zst |
Use QPDF::newStream in examples
Diffstat (limited to 'examples/pdf-custom-filter.cc')
-rw-r--r-- | examples/pdf-custom-filter.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pdf-custom-filter.cc b/examples/pdf-custom-filter.cc index 2ea5fd42..2310a687 100644 --- a/examples/pdf-custom-filter.cc +++ b/examples/pdf-custom-filter.cc @@ -365,8 +365,7 @@ StreamReplacer::registerStream( // or create objects during write. char p[1] = {static_cast<char>(this->keys[og])}; std::string p_str(p, 1); - QPDFObjectHandle dp_stream = - QPDFObjectHandle::newStream(this->pdf, p_str); + QPDFObjectHandle dp_stream = this->pdf->newStream(p_str); // Create /DecodeParms as expected by our fictitious // /XORDecode filter. QPDFObjectHandle decode_parms = |