diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-09-02 20:59:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 20:59:16 +0200 |
commit | ec6784411d4f9fbf99a03f8e092e38fd3816049a (patch) | |
tree | b4a3b3b625a2a8e7d81bc738d29e4009550570b1 /include | |
parent | fc656816c142c22f43094d16de99559bfbf0fa2f (diff) | |
parent | ac32dbc313db9490165271d1fa2a602315ddb7e0 (diff) | |
download | qpdf-ec6784411d4f9fbf99a03f8e092e38fd3816049a.tar.zst |
Merge pull request #1028 from m-holger/i1003
Maintain links to foreign pages when copying foreign objects (fixes #1003)
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 2ee2bb34..2fd0f493 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -351,6 +351,8 @@ class QPDF // QPDF with QPDFWriter if it has any reserved objects in it. QPDF_DLL QPDFObjectHandle newReserved(); + QPDF_DLL + QPDFObjectHandle newIndirectNull(); // Install this object handle as an indirect object and return an indirect reference to it. QPDF_DLL @@ -391,8 +393,8 @@ class QPDF void swapObjects(int objid1, int generation1, int objid2, int generation2); // Replace a reserved object. This is a wrapper around replaceObject but it guarantees that the - // underlying object is a reserved object. After this call, reserved will be a reference to - // replacement. + // underlying object is a reserved object or a null object. After this call, reserved will + // be a reference to replacement. QPDF_DLL void replaceReserved(QPDFObjectHandle reserved, QPDFObjectHandle replacement); |