aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-01-06 23:20:55 +0100
committerJay Berkenbilt <ejb@ql.org>2024-01-06 23:20:55 +0100
commite50ff67d0038b4fea93376a918c85ebf225d7d8a (patch)
tree40e2310be54ef88c74a0481adefdffd244837c5e /libqpdf
parent7b3fff15a9042b09965de27ee691080b0e71817b (diff)
downloadqpdf-e50ff67d0038b4fea93376a918c85ebf225d7d8a.tar.zst
Remove explicit type from PageLabel dictionary
The old code didn't put one there, and it's not really useful. It just makes the file (trivially) larger.
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDFPageLabelDocumentHelper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFPageLabelDocumentHelper.cc b/libqpdf/QPDFPageLabelDocumentHelper.cc
index e291e9aa..eab70b9f 100644
--- a/libqpdf/QPDFPageLabelDocumentHelper.cc
+++ b/libqpdf/QPDFPageLabelDocumentHelper.cc
@@ -104,7 +104,7 @@ QPDFObjectHandle
QPDFPageLabelDocumentHelper::pageLabelDict(
qpdf_page_label_e label_type, int start_num, std::string_view prefix)
{
- auto num = "<< /Type /PageLabel >>"_qpdf;
+ auto num = QPDFObjectHandle::newDictionary();
switch (label_type) {
case pl_none:
break;