diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-04-05 16:45:18 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-04-05 16:58:10 +0200 |
commit | 8971443e4680fc1c0babe56da58cc9070a9dae2e (patch) | |
tree | 9a95940010bcf7e0790834621bc885492898a3c6 /ChangeLog | |
parent | ec48820c3cf8ead0add464c60f5dddd84ba0097d (diff) | |
download | qpdf-8971443e4680fc1c0babe56da58cc9070a9dae2e.tar.zst |
QPDF::addPage*: handle duplicate pages more robustly
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,16 @@ +2021-04-05 Jay Berkenbilt <ejb@ql.org> + + * When adding a page, if the page already exists, make a shallow + copy of the page instead of throwing an exception. This makes the + behavior of adding a page from the library consistent with what + the CLI does and also with what the library does if it starts with + a file that already has a duplicated page. Note that this means + that, in some cases, the page you pass to addPage or addPageAt + (either in QPDF or QPDFPageDocumentHelper) will not be the same + object that actually gets added. (This has actually always been + the case.) That means that, if you are going to do subsequent + modification on the page, you should retrieve it again. + 2021-03-11 Jay Berkenbilt <ejb@ql.org> * 10.3.1: release |