From e50ff67d0038b4fea93376a918c85ebf225d7d8a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 6 Jan 2024 17:20:55 -0500 Subject: [PATCH] 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. --- libqpdf/QPDFPageLabelDocumentHelper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;