aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
parent41b5c46497997d45ba2e7521b66a262ea7a1afd4 (diff)
downloadqpdf-babd12c9b2b824416d2e5992d961396090e2bfea.tar.zst
Add methods QPDF::anyWarnings and QPDF::closeInputSource
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index c488e0b1..736e1676 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -101,6 +101,14 @@ class QPDF
void processInputSource(PointerHolder<InputSource>,
char const* password = 0);
+ // Close or otherwise release the input source. Once this has been
+ // called, no other methods of qpdf can be called safely except
+ // for getWarnings and anyWarnings(). After this has been called,
+ // it is safe to perform operations on the input file such as
+ // deleting or renaming it.
+ QPDF_DLL
+ void closeInputSource();
+
// For certain forensic or investigatory purposes, it may
// sometimes be useful to specify the encryption key directly,
// even though regular PDF applications do not provide a way to do
@@ -206,6 +214,11 @@ class QPDF
QPDF_DLL
std::vector<QPDFExc> getWarnings();
+ // Indicate whether any warnings have been issued so far. Does not
+ // clear the list of warnings.
+ QPDF_DLL
+ bool anyWarnings() 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