aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index b4f03599..07a384d7 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -867,6 +867,9 @@ class QPDF
};
friend class Pipe;
+ // For testing only -- do not add to DLL
+ static bool test_json_validators();
+
private:
static std::string const qpdf_version;
@@ -1045,7 +1048,7 @@ class QPDF
QPDFObjectHandle makeObject(JSON const& value);
void error(size_t offset, std::string const& message);
QPDFObjectHandle
- reserveObject(std::string const& obj, std::string const& gen);
+ reserveObject(int obj, int gen);
void replaceObject(
QPDFObjectHandle to_replace,
QPDFObjectHandle replacement,
@@ -1500,6 +1503,7 @@ class QPDF
};
// Methods to support pattern finding
+ static bool validatePDFVersion(char const*&, std::string& version);
bool findHeader();
bool findStartxref();
bool findEndstream();