mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
Add QPDF::numWarnings
This commit is contained in:
parent
37fcc5ff71
commit
1bb209a9bf
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user