aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-31 21:10:29 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-31 21:51:20 +0200
commitbabd12c9b2b824416d2e5992d961396090e2bfea (patch)
treedb93106c110c40bceac97914ec8eb3658a50dbf9 /libqpdf/QPDF.cc
parent41b5c46497997d45ba2e7521b66a262ea7a1afd4 (diff)
downloadqpdf-babd12c9b2b824416d2e5992d961396090e2bfea.tar.zst
Add methods QPDF::anyWarnings and QPDF::closeInputSource
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc12
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();