diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:03:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:25:43 +0200 |
commit | 68e721981a1fe4f1398d811bb8ed99af0e100da8 (patch) | |
tree | d2990289f704e96bd8853891846119e02d0a12f0 /libqpdf/QPDFJob.cc | |
parent | 696ca53205fd725062b541fea88d9f36742a4c74 (diff) | |
download | qpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst |
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'libqpdf/QPDFJob.cc')
-rw-r--r-- | libqpdf/QPDFJob.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index af7a7c38..692e6420 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -2677,14 +2677,13 @@ QPDFJob::handlePageSpecs( *other_afdh, &referenced_fields); } catch (std::exception& e) { - pdf.warn(QPDFExc( + pdf.warn( qpdf_e_damaged_pdf, - pdf.getFilename(), "", 0, ("Exception caught while fixing copied" " annotations. This may be a qpdf bug. " + - std::string("Exception: ") + e.what()))); + std::string("Exception: ") + e.what())); } } } @@ -3127,14 +3126,13 @@ QPDFJob::doSplitPages(QPDF& pdf, bool& warnings) try { out_afdh->fixCopiedAnnotations(new_page, page, afdh); } catch (std::exception& e) { - pdf.warn(QPDFExc( + pdf.warn( qpdf_e_damaged_pdf, - pdf.getFilename(), "", 0, - "Exception caught while fixing copied" - " annotations. This may be a qpdf bug." + - std::string("Exception: ") + e.what())); + ("Exception caught while fixing copied" + " annotations. This may be a qpdf bug." + + std::string("Exception: ") + e.what())); } } } |