From 5ccab4be03701744f9795b37b4e5835b1a7b1c1d Mon Sep 17 00:00:00 2001 From: m-holger Date: Wed, 28 Sep 2022 12:25:52 +0100 Subject: Add private methods QPDF::damagedPDF --- include/qpdf/QPDF.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 0156a7a2..3bda477f 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -1194,6 +1194,22 @@ class QPDF std::shared_ptr const& object, qpdf_offset_t end_before_space, qpdf_offset_t end_after_space); + static QPDFExc damagedPDF( + std::shared_ptr const& input, + std::string const& object, + qpdf_offset_t offset, + std::string const& message); + QPDFExc damagedPDF( + std::shared_ptr const& input, + qpdf_offset_t offset, + std::string const& message); + QPDFExc damagedPDF( + std::string const& object, + qpdf_offset_t offset, + std::string const& message); + QPDFExc damagedPDF(std::string const& object, std::string const& message); + QPDFExc damagedPDF(qpdf_offset_t offset, std::string const& message); + QPDFExc damagedPDF(std::string const& message); // Calls finish() on the pipeline when done but does not delete it bool pipeStreamData( -- cgit v1.2.3-70-g09d2