Commit 779d668e1785b87a7f627612d596ba1b30fe167a
1 parent
1c7c6dd1
write original object ID in a comment
git-svn-id: svn+q:///qpdf/trunk@658 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
9 additions
and
1 deletions
libqpdf/QPDFWriter.cc
| ... | ... | @@ -932,7 +932,9 @@ QPDFWriter::writeObjectStream(QPDFObjectHandle object) |
| 932 | 932 | { |
| 933 | 933 | writeString("%% Object stream: object " + |
| 934 | 934 | QUtil::int_to_string(new_obj) + ", index " + |
| 935 | - QUtil::int_to_string(count) + "\n"); | |
| 935 | + QUtil::int_to_string(count) + | |
| 936 | + "; original object ID: " + | |
| 937 | + QUtil::int_to_string(obj) + "\n"); | |
| 936 | 938 | } |
| 937 | 939 | if (pass == 1) |
| 938 | 940 | { |
| ... | ... | @@ -1026,6 +1028,12 @@ QPDFWriter::writeObject(QPDFObjectHandle object, int object_stream_index) |
| 1026 | 1028 | } |
| 1027 | 1029 | if (object_stream_index == -1) |
| 1028 | 1030 | { |
| 1031 | + if (this->qdf_mode) | |
| 1032 | + { | |
| 1033 | + writeString("%% Original object ID: " + | |
| 1034 | + QUtil::int_to_string(object.getObjectID()) + " " + | |
| 1035 | + QUtil::int_to_string(object.getGeneration()) + "\n"); | |
| 1036 | + } | |
| 1029 | 1037 | openObject(new_id); |
| 1030 | 1038 | setDataKey(new_id); |
| 1031 | 1039 | unparseObject(object, 0, 0); | ... | ... |