From 30f109e244f365111d5219903f13d64cf1a95054 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 10 Aug 2017 19:37:05 -0400 Subject: Read xref table without PCRE Also accept more errors than before. --- include/qpdf/QPDF.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 92a66a34..004e4b9c 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -652,6 +652,10 @@ class QPDF void setTrailer(QPDFObjectHandle obj); void read_xref(qpdf_offset_t offset); void reconstruct_xref(QPDFExc& e); + bool parse_xrefFirst(std::string const& line, + int& obj, int& num, int& bytes); + bool parse_xrefEntry(std::string const& line, + qpdf_offset_t& f1, int& f2, char& type); qpdf_offset_t read_xrefTable(qpdf_offset_t offset); qpdf_offset_t read_xrefStream(qpdf_offset_t offset); qpdf_offset_t processXRefStream( -- cgit v1.2.3-54-g00ecf