diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-07-16 12:21:11 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-07-24 16:41:48 +0200 |
commit | eeb6162f7620fba49bb141ccd2c715cd829c8e24 (patch) | |
tree | 60869241401c5c4c673a54f1e00360bbf02a4542 /libqpdf/QPDFWriter.cc | |
parent | 6f1041afb8e6d1f57169cd4c79f42a7c1ce94da8 (diff) | |
download | qpdf-eeb6162f7620fba49bb141ccd2c715cd829c8e24.tar.zst |
Add optional parameter separator to QPDFObjGen::unparse
Also, revert inlining of unparse and operator << from commit 4c6640c in
order to avoid exposing QUtil.
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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); |