From a3576a73593987b26cd3eff346f8f7c11f713cbd Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 14 Jun 2013 14:53:47 -0400 Subject: Bug fix: handle generation > 0 when generating object streams Rework QPDFWriter to always track old object IDs and QPDFObjGen instead of int, thus not discarding the generation number. Switch to QPDF::getCompressibleObjGen() to properly handle the case of an old object eligible for compression that has a generation of other than zero. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a71b3f18..5dafe0bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2013-06-14 Jay Berkenbilt + * Bug fix: properly handle object stream generation when the + original file has some compressible objects with generation != 0. + + * Add QPDF::getCompressibleObjGens() and deprecate + QPDF::getCompressibleObjects(), which had a flaw in its logic. + * Add new QPDFObjectHandle::getObjGen() method and indiciate in comments that its use is favored over getObjectID() and getGeneration() for most cases. -- cgit v1.2.3-54-g00ecf