diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-06-15 15:58:14 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-15 16:49:50 +0200 |
commit | ae19d703f4022475bed2576b38b3c74548cafd10 (patch) | |
tree | f7e65e2afe59074cf651fd9ba4669b3bc403465e /libqpdf | |
parent | ddc864511568506d3b4e4939d029a87f19067919 (diff) | |
download | qpdf-ae19d703f4022475bed2576b38b3c74548cafd10.tar.zst |
Ensure copied annotations are fixed (fixes #600)
Case where pages from a main input without /AcroForm key were duplicated
was omitted
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFJob.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index 4c7fdd04..d254f338 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -2496,7 +2496,7 @@ QPDFJob::handlePageSpecs(QPDF& pdf, std::vector<std::unique_ptr<QPDF>>& page_hea // the original file until all copy operations are completed, any foreign pages that // conflict with original pages will be adjusted. If we copy any page from the original // file more than once, that page would be in conflict with the previous copy of itself. - if (other_afdh->hasAcroForm() && ((!this_file) || (!first_copy_from_orig))) { + if ((!this_file && other_afdh->hasAcroForm()) || !first_copy_from_orig) { if (!this_file) { QTC::TC("qpdf", "QPDFJob copy fields not this file"); } else if (!first_copy_from_orig) { |