2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-09-28 21:19:06 +00:00
qpdf/libqpdf
Jay Berkenbilt 6bbea4baa0 Implement QPDFObjectHandle::parse
Move object parsing code from QPDF to QPDFObjectHandle and
parameterize the parts of it that are specific to a QPDF object.
Provide a version that can't handle indirect objects and that can be
called on an arbitrary string.

A side effect of this change is that the offset used when reporting
invalid stream length has changed, but since the new value seems like
a better value than the old one, the test suite has been updated
rather than making the code backward compatible.  This only effects
the offset reported for invalid streams that lack /Length or have an
invalid /Length key.

Updated some test code and exmaples to use QPDFObjectHandle::parse.

Supporting changes include adding a BufferInputSource constructor that
takes a string.
2012-07-21 09:06:10 -04:00
..
qpdf Implement QPDFObjectHandle::parse 2012-07-21 09:06:10 -04:00
bits.icc Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
BitStream.cc Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
BitWriter.cc Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
Buffer.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
BufferInputSource.cc Implement QPDFObjectHandle::parse 2012-07-21 09:06:10 -04:00
build.mk Refactor: pull *InputSource out of QPDF 2012-07-21 09:06:06 -04:00
FileInputSource.cc Refactor: pull *InputSource out of QPDF 2012-07-21 09:06:06 -04:00
InputSource.cc Refactor: pull *InputSource out of QPDF 2012-07-21 09:06:06 -04:00
Makefile update release date to actual date 2008-04-29 12:55:25 +00:00
MD5.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
PCRE.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pipeline.cc do DLL_EXPORT only in header files and only at the class or top-level function level 2009-10-12 01:15:55 +00:00
Pl_AES_PDF.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_ASCII85Decoder.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_ASCIIHexDecoder.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_Buffer.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_Concatenate.cc Add Pl_Concatenate filter 2012-06-27 10:20:38 -04:00
Pl_Count.cc Use qpdf_offset_t in place of off_t in public APIs. 2012-06-21 21:23:24 -04:00
Pl_Discard.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_Flate.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_LZWDecoder.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_MD5.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_PNGFilter.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_QPDFTokenizer.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_RC4.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
Pl_StdioFile.cc Fix large file support for 32-bit Linux 2012-06-25 10:51:44 -04:00
QPDF_Array.cc Added additional array mutators 2012-06-20 15:29:44 -04:00
QPDF_Bool.cc removed qexc; non-compatible ABI change 2009-09-26 18:36:04 +00:00
QPDF_Dictionary.cc implement methods to get dictionary and array contents as map and vector 2011-08-10 13:33:58 -04:00
QPDF_encryption.cc Add command line option to copy encryption from other file 2012-07-15 21:15:24 -04:00
QPDF_Integer.cc Change QPDF_Integer from int to long long 2012-06-24 15:20:01 -04:00
QPDF_linearization.cc Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
QPDF_Name.cc removed qexc; non-compatible ABI change 2009-09-26 18:36:04 +00:00
QPDF_Null.cc removed qexc; non-compatible ABI change 2009-09-26 18:36:04 +00:00
QPDF_optimization.cc Support copying objects from another QPDF object 2012-07-11 15:54:33 -04:00
QPDF_pages.cc Support copying objects from another QPDF object 2012-07-11 15:54:33 -04:00
QPDF_Real.cc Add QPDFObjectHandle::newReal(double) 2012-06-27 10:19:01 -04:00
QPDF_Reserved.cc Add concept of reserved objects 2012-07-10 23:34:32 -04:00
QPDF_Stream.cc Implement QPDFObjectHandle::parse 2012-07-21 09:06:10 -04:00
QPDF_String.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
qpdf-c.cc Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
QPDF.cc Implement QPDFObjectHandle::parse 2012-07-21 09:06:10 -04:00
QPDFExc.cc Use qpdf_offset_t in place of off_t in public APIs. 2012-06-21 21:23:24 -04:00
QPDFObject.cc removed qexc; non-compatible ABI change 2009-09-26 18:36:04 +00:00
QPDFObjectHandle.cc Implement QPDFObjectHandle::parse 2012-07-21 09:06:10 -04:00
QPDFTokenizer.cc Move readToken from QPDF to QPDFTokenizer 2012-07-21 09:06:10 -04:00
QPDFWriter.cc Minor fixes to copyEncryptionParameters 2012-07-15 21:14:02 -04:00
QPDFXRefEntry.cc Use qpdf_offset_t in place of off_t in public APIs. 2012-06-21 21:23:24 -04:00
QTC.cc do DLL_EXPORT only in header files and only at the class or top-level function level 2009-10-12 01:15:55 +00:00
QUtil.cc Rename seek functions in QUtil 2012-06-26 23:10:10 -04:00
RC4.cc ABI change: fix use of off_t, size_t, and integer types 2012-06-20 15:20:26 -04:00
rijndael.cc got working aes128 implementation 2009-10-17 15:01:20 +00:00