From eeb6162f7620fba49bb141ccd2c715cd829c8e24 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 16 Jul 2022 11:21:11 +0100 Subject: Add optional parameter separator to QPDFObjGen::unparse Also, revert inlining of unparse and operator << from commit 4c6640c in order to avoid exposing QUtil. --- libqpdf/QPDFWriter.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libqpdf/QPDFWriter.cc') diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index d160ff99..50ec9406 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -1990,9 +1990,8 @@ QPDFWriter::writeObject(QPDFObjectHandle object, int object_stream_index) if (object_stream_index == -1) { if (this->m->qdf_mode && (!this->m->suppress_original_object_ids)) { writeString( - "%% Original object ID: " + - QUtil::int_to_string(object.getObjectID()) + " " + - QUtil::int_to_string(object.getGeneration()) + "\n"); + "%% Original object ID: " + object.getObjGen().unparse(' ') + + "\n"); } openObject(new_id); setDataKey(new_id); -- cgit v1.2.3-70-g09d2