From f69ed209d093155e9921487056142370d0a6d0ce Mon Sep 17 00:00:00 2001 From: m-holger Date: Mon, 26 Sep 2022 19:29:26 +0100 Subject: Use QPDF::newStream in examples --- examples/pdf-overlay-page.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/pdf-overlay-page.cc') diff --git a/examples/pdf-overlay-page.cc b/examples/pdf-overlay-page.cc index d055d279..04a1e921 100644 --- a/examples/pdf-overlay-page.cc +++ b/examples/pdf-overlay-page.cc @@ -57,10 +57,8 @@ stamp_page(char const* infile, char const* stampfile, char const* outfile) // page's original content. resources.mergeResources("<< /XObject << >> >>"_qpdf); resources.getKey("/XObject").replaceKey(name, stamp_fo); - ph.addPageContents( - QPDFObjectHandle::newStream(&inpdf, "q\n"), true); - ph.addPageContents( - QPDFObjectHandle::newStream(&inpdf, "\nQ\n" + content), false); + ph.addPageContents(inpdf.newStream("q\n"), true); + ph.addPageContents(inpdf.newStream("\nQ\n" + content), false); } // Copy the annotations and form fields from the original page // to the new page. For more efficiency when copying multiple -- cgit v1.2.3-70-g09d2