diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-31 21:10:29 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-31 21:51:20 +0200 |
commit | babd12c9b2b824416d2e5992d961396090e2bfea (patch) | |
tree | db93106c110c40bceac97914ec8eb3658a50dbf9 /libqpdf | |
parent | 41b5c46497997d45ba2e7521b66a262ea7a1afd4 (diff) | |
download | qpdf-babd12c9b2b824416d2e5992d961396090e2bfea.tar.zst |
Add methods QPDF::anyWarnings and QPDF::closeInputSource
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDF.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index a774bd42..57f57d27 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -240,6 +240,12 @@ QPDF::processInputSource(PointerHolder<InputSource> source, } void +QPDF::closeInputSource() +{ + this->m->file = 0; +} + +void QPDF::setPasswordIsHexKey(bool val) { this->m->provided_password_is_hex_key = val; @@ -291,6 +297,12 @@ QPDF::getWarnings() } bool +QPDF::anyWarnings() const +{ + return ! this->m->warnings.empty(); +} + +bool QPDF::findHeader() { qpdf_offset_t global_offset = this->m->file->tell(); |