summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh3
-rw-r--r--include/qpdf/QPDFTokenizer.hh3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 58f6af6e..f57789a0 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -666,7 +666,8 @@ class QPDF
size_t recoverStreamLength(
PointerHolder<InputSource> input, int objid, int generation,
qpdf_offset_t stream_offset);
- QPDFTokenizer::Token readToken(PointerHolder<InputSource>);
+ QPDFTokenizer::Token readToken(PointerHolder<InputSource>,
+ bool allow_bad = false);
QPDFObjectHandle readObjectAtOffset(
bool attempt_recovery,
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh
index 2f3dfec2..39cb9225 100644
--- a/include/qpdf/QPDFTokenizer.hh
+++ b/include/qpdf/QPDFTokenizer.hh
@@ -138,7 +138,8 @@ class QPDFTokenizer
// exception thrown if there is an error.
QPDF_DLL
Token readToken(PointerHolder<InputSource> input,
- std::string const& context);
+ std::string const& context,
+ bool allow_bad = false);
private:
void reset();