2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Add QPDF::numWarnings

This commit is contained in:
Jay Berkenbilt 2021-03-01 17:33:34 -05:00
parent 37fcc5ff71
commit 1bb209a9bf
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2021-03-01 Jay Berkenbilt <ejb@ql.org>
* Add QPDF::numWarnings() -- useful to tell whether any warnings
were issued by a specific bit of code.
2021-02-26 Jay Berkenbilt <ejb@ql.org>
* Bug fix: QPDFFormFieldObjectHelper was mis-handling /DA, /Q, and

View File

@ -236,6 +236,11 @@ class QPDF
QPDF_DLL
bool anyWarnings() const;
// Indicate the number of warnings that have been issued so far.
// Does not clear the list of warnings.
QPDF_DLL
size_t numWarnings() const;
// Return an application-scoped unique ID for this QPDF object.
// This is not a globally unique ID. It is constructing using a
// timestamp and a random number and is intended to be unique

View File

@ -366,6 +366,12 @@ QPDF::anyWarnings() const
return ! this->m->warnings.empty();
}
size_t
QPDF::numWarnings() const
{
return this->m->warnings.size();
}
bool
QPDF::findHeader()
{