aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-overlay-page.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-05 15:18:58 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-05 17:29:25 +0100
commit7fb22740e131d997fb68bc113b8d9b4472e2c908 (patch)
tree93da9a3babdf591fa1cc286f71fb3d6f2277fa30 /examples/pdf-overlay-page.cc
parentb48a0ff0e8e1861884b2dac62d98d39f8e194086 (diff)
downloadqpdf-7fb22740e131d997fb68bc113b8d9b4472e2c908.tar.zst
Add operator ""_qpdf for creating QPDFObjectHandle literals
Diffstat (limited to 'examples/pdf-overlay-page.cc')
-rw-r--r--examples/pdf-overlay-page.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pdf-overlay-page.cc b/examples/pdf-overlay-page.cc
index 1e06c40c..7b8888e4 100644
--- a/examples/pdf-overlay-page.cc
+++ b/examples/pdf-overlay-page.cc
@@ -65,8 +65,7 @@ static void stamp_page(char const* infile,
// Append the content to the page's content. Surround the
// original content with q...Q to the new content from the
// page's original content.
- resources.mergeResources(
- QPDFObjectHandle::parse("<< /XObject << >> >>"));
+ resources.mergeResources("<< /XObject << >> >>"_qpdf);
resources.getKey("/XObject").replaceKey(name, stamp_fo);
ph.addPageContents(
QPDFObjectHandle::newStream(&inpdf, "q\n"), true);