Debian Codegraph @

CHANGES

raw
1 Revision history for Perl module CAM::PDF
2
3 1.60 14 Aug 2013
4 [ENHANCEMENTS]
5 - Added min/max font size for form field filling.
6 Thanks to Gareth Tunley for the idea and the initial code
7
8 1.59 28 Jan 2013
9 [FIXES]
10 - Added support for the \134 escape, synonymous with \\
11 Thanks to Zakariyya Mughal for the patch
12 https://rt.cpan.org/Ticket/Display.html?id=83018
13
14 1.58 28 May 2012
15 Many thanks for Vadim Repin for numerous excellent bug reports!
16 [FIXES]
17 - Appended pdf revisions incorrectly incremented object generation numbers
18 https://rt.cpan.org/Ticket/Display.html?id=76513
19 - Appending pdf revisions was broken for non-linearized PDFs
20 https://rt.cpan.org/Ticket/Display.html?id=76514
21 - Allow multiple "startxref" statements in the last 1024 bytes -- unlikely, but possible
22 https://rt.cpan.org/Ticket/Display.html?id=77508
23 - Allow whitespace at the beginning of an indirect object (I think the PDF spec is
24 ambiguous about this)
25 https://rt.cpan.org/Ticket/Display.html?id=76512
26 - Allow backspace character
27 https://rt.cpan.org/Ticket/Display.html?id=76151
28 [DOCUMENTATION]
29 - mention $pdf->setPageContent($pagenum, $tree->toString());
30 Leo Lapworth and http://cpanforum.com/posts/13228
31
32 1.57 17 Dec 2011
33 [FIXES]
34 - Test for undef streams instead of truth, to allow streams like '' or '0'
35 Thanks to Thorsten Schwander for the patch
36 - Failed to parse PDF 1.5 cross reference streams where a
37 1024-byte boundary happened to fall between "endstream" and
38 "endobj" do to a logic error.
39 Thanks to Thorsten Schwander for the report and fix suggestion
40
41 1.56 13 Dec 2011
42 [FIXES]
43 - Workaround for corrupt PDFs that have 'n' records in their index that point to byte zero
44 of the file. Silently treat those as 'f' records. Yet another case of Acrobat supporting
45 broken PDFs, so the rest of us have to support them too...
46 Thanks to Mark Hunnibell for a sample PDF that demonstrated the problem
47
48 1.55 22 Jun 2011
49 [FIXES]
50 - Performance enhancement saving large files
51 https://rt.cpan.org/Ticket/Display.html?id=69021
52 Thanks to David Porter of Audacitas Limited for the patch
53
54 1.54 26 Mar 2011
55 [FIXES]
56 - appendPDF was broken intermittently if appended doc was bigger than main doc
57 Thanks to Charlie Katz for a sample PDF
58 http://chrisdolan.net/talk/2011/03/26/cam-pdf-fixes-appendpdf-bug/
59
60 1.53 25 Mar 2011
61 [FIXES]
62 - Handle PDF 1.5 case where "endstream" token crosses a 1024-byte boundary
63 Thanks to Charlie Katz for a sample PDF
64 - Allow whitespace after the 'stream' token for better interoperability
65 http://rt.cpan.org/Ticket/Display.html?id=42819
66 Credit to Vonne 'Robert' Bannavong
67 - Fix broken crunchjpgs.pl, patch submitted by George Greer
68 - Tolerate leading zeros on objnums and gennums
69 http://www.cpanforum.com/posts/11494
70
71 1.52 02 Oct 2008
72 [FIXES]
73 - Better handling of failures during filter loading
74 (rlane10 via http://www.nntp.perl.org/group/perl.cpan.testers/2008/10/msg2361238.html)
75
76 1.51 28 Sep 2008
77 [FIXES]
78 - Support PDFs with 24-bit offsets in the xref stream (PDF v1.5 only)
79 (thanks to Dan Richman for reporting the problem and providing an example)
80
81 1.50 20 Sep 2008
82 [ENHANCEMENTS]
83 - Support for reading PDF 1.5 compressed object streams and cross reference streams.
84 (we cannot write this style, but we can append to it)
85 [FIXES]
86 - Decompression of PNG-filtered streams was totally broken.
87 - Deleting pages now also deletes back references from annotations on that page.
88 - cleanse() now removes PieceInfo data. I have no idea what
89 PieceInfo does, but it had a whole bunch of page back links
90 that broke page deletion.
91
92 1.21 13 Aug 2008
93 [FIXES]
94 - Permit comments after the %%EOF, like Adobe Reader does. Thanks to
95 Malcolm Cook for pointing out the incompatibility.
96
97 1.20 26 Jun 2008
98 [ENHANCEMENTS]
99 - Support for Type 2 encryption (just reading, not writing)
100 - Support for reading PDFs where the owner and user passwords
101 are different
102 - Improvement to performance of node traversal, inspired by
103 RT #35555 (credit Eric Hall and his anonymous employee).
104
105 1.13 23 Apr 2008
106 [FIXES]
107 - setpdfbackground.pl computed RGB values incorrectly. Thanks to
108 Andrew Cadman for finding the bug and suggesting a fix
109
110 1.12 27 Nov 2007
111 [FIXES]
112 - I just realized that CAM::PDF::Renderer::Text was useless
113 because it just printed to STDOUT. Fixed to offer a
114 toString() method instead. Fuse::PDF wants this feature.
115 - Fixed a typo in the Synopsis of CAM::PDF::Content
116
117 1.11 20 Nov 2007
118 [ENHANCEMENTS]
119 - added previousRevision() and allRevisions() [invented in Fuse::PDF]
120 [INTERNALS]
121 - Compliance with Perl::Critic v1.080
122
123 1.10 24 Mar 2007
124 [FIXES]
125 - RT #25306, regression in rangeToArray
126
127 1.09 25 Feb 2007
128 [FIXES]
129 - Restore Perl 5.6.x compatibility which was broken in 1.08
130 (credit Brian Casey of rootlevelservices.com)
131 - Detect end-image tag accidentally embedded with an inline
132 image (credit Christian Drechsler)
133 [INTERNALS]
134 - Changed maintainer from [email protected] to [email protected]
135
136 1.08 17 Oct 2006
137 [FIXES]
138 - Add binmode() for Windows (RT #22136)
139 - Fix addFont() where there is no 'Font' property (RT #22049)
140 [INTERNALS]
141 - Compliance with Perl::Critic v0.21 and Bangs
142 - Moved the examples from scripts/ to bin/
143
144 1.07 11 Jul 2006
145 [ENHANCEMENTS]
146 - Add background_color options to fillFormFields
147 [FIXES]
148 - Add binmode() for Windows (RT #22136)
149 - Documentation and copyright year
150 [INTERNALS]
151 - Compliance with Perl::Critic v0.17
152
153 1.06 20 Mar 2006
154 [ENHANCEMENTS]
155 - Added scripts/setpdfbackground.pl program
156 - Added getPageDimensions() method
157
158 1.05 06 Dec 2005
159 [FIXES]
160 - Forgot to import Carp::cluck
161
162 1.04_01 30 Nov 2005
163 [ENHANCEMENTS]
164 - Docs
165 [INTERNALS]
166 - Refactoring
167 - Add an ENV flag to skip some tests
168
169 1.03 20 Oct 2005
170 [ENHANCEMENTS]
171 - Regression tests
172 [FIXES]
173 - Fixes for deletePages with initial support for Dests and Outlines
174 [INTERNALS]
175 - Some code cleanup
176
177 1.02_01 18 Oct 2005
178 Broken CPAN release!
179 [ENHANCEMENTS]
180 - Add options hash to the constructor.
181 - Documentation
182 [FIXES]
183 - Regression: parseStream must be able to be called as a class method
184 [INTERNALS]
185 - Code refactoring.
186
187 1.01 20 Sep 2005
188 [INCOMPATIBLE]
189 - The API for CAM::PDF::Decrypt changed. Several methods now
190 require a CAM::PDF instance as a first argument.
191 [FIXES]
192 - Remove instances of circular references so CAM::PDF instances
193 are able to be garbage collected.
194
195 1.00 19 Sep 2005
196 [FIXES]
197 - Fix an artificial limitation of the encryption module
198
199 0.99 22 Apr 2005
200 First CPAN release
201 [INCOMPATIBLE]
202 - Relicence from GPL-only to GPL+Artistic
203 [FIXES]
204 - Debug asciify shell script
205 - Read error on fontmetrics Width array (bounds error)
206 [INTERNALS]
207 - Add handy nodeType function
208
209 0.98 30 Nov 2004
210 [ENHANCEMENTS]
211 - Added better position support to GS
212 - Added support for color devices in G
213 - Prepend
214 [FIXES]
215 - addFont now checks that the font does not exist before adding
216 [INTERNALS]
217 - load Data::Dumper on demand only
218
219 0.97 09 Nov 2004
220 [FIXES]
221 - Tree validation fixes
222 - Pass textwidth into the renderText() function
223 - Page validation: string vs. hexstring
224
225
226 0.95 18 Jun 2004
227 [ENHANCEMENTS]
228 - New methods: addFont, wrapString
229 [FIXES]
230 - Debugged: graphic state computation
231
232 0.94 13 May 2004
233 [ENHANCEMENTS]
234 - New methods:
235 getFontNames
236 getFonts
237 getFontByBaseName
238 deEmbedFontByBaseName
239 deEmbedFontObj
240 - pdfinfo.pl - more detailed output
241 - deillustrate.pl - new script to remove Illustrator metadata
242 [FIXES]
243 - disable the "node has only one kid and no parent" error
244 This is a case where the delete code does a poor job of
245 maintaining a balanced page tree and then complains about it's
246 own bad work. This should eventually be fixed, but for now,
247 removing the die() is good enough.
248
249 0.93 29 Mar 2004
250 [FIXES]
251 - Fix for font de-embedding to remove unused font widths
252
253 0.92 30 Jan 2004
254 [ENHANCEMENTS]
255 - Add deEmbedFont() method
256 [FIXES]
257 - Fix a new bug in the page range code
258
259 0.91 30 Jan 2004
260 [ENHANCEMENTS]
261 - Add listfonts.pl
262 [FIXES]
263 - Fix bug regarding page number ranges in getpdftext.pl and
264 rendertext.pl
265 - Fix MANIFEST
266
267 0.90 18 Sep 2003
268 [INCOMPATIBLE]
269 - Rename revert.pl to revertpdf.pl
270 [ENHANCEMENTS]
271 - Add documentation to all scripts
272 - Ensure that all scripts respect PDF Modify permission
273 [INTERNALS]
274 - Add functions to facilitate testing PDF permissions
275
276 0.80 16 Sep 2003
277 [ENHANCEMENTS]
278 - Lots and lots and lots of documentation
279 - Use Module::Build
280 [FIXES]
281 - Caught a couple little bugs in Decrypt.pm
282 - Clean up some obsolete code in the Decrypt module
283
284 0.75 11 Sep 2003
285 [FIXES]
286 - Fix little bug in getStringWidth method
287 - Minor bugfix in debugging function
288
289 0.74 29 Aug 2003
290 [FIXES]
291 - Better handling for loading Text::PDF::Filter library
292 [INTERNALS]
293 - Split GS.pm into two parts for performance
294
295 0.73 11 Aug 2003
296 [FIXES]
297 - Font metric widths were not properly dereferenced, in the case
298 of indirect objects
299 - Page content "cm" directives (transform user coordinate system
300 matrix) were replacing the current matrix instead of appending
301 to it.
302
303 0.72 26 Jun 2003
304 [ENHANCEMENTS]
305 - Add documentation for extractPages
306 [FIXES]
307 - rangeToArray() bug fixes in the corner cases, added tests
308 - Fix number of tests
309
310 0.71 25 Jun 2003
311 [ENHANCEMENTS]
312 - add extractPages()
313 - add more tests
314 [FIXES]
315 - Fix bug in deletePages
316
317 0.70 24 Jun 2003
318 [ENHANCEMENTS]
319 - Convert parser to non-destructive for higher speed
320 [FIXES]
321 - Fix a bug in the test script
322
323 0.65 24 Jun 2003
324 [ENHANCEMENTS]
325 - Add toPDF() and needsSave() methods.
326
327 0.64 24 Jun 2003
328 [ENHANCEMENTS]
329 - Add PDF.pm dcumentation
330 - Add isLinearized() method
331 - Add more output for pdfinfo.pl
332 [FIXES]
333 - Fix bug in syntax for page "d" element (numbers, not just integers)
334
335 0.63 22 Jun 2003
336 [ENHANCEMENTS]
337 - Added PDF test document
338 - Added pdfinfo.pl script
339 - Added toString method on CAM::PDF::Content class
340 - Added writeInlineImage method to support above
341 [FIXES]
342 - Simple bug fix in writeAny error message
343
344 0.62 09 Jun 2003
345 [ENHANCEMENTS]
346 - Add Images renderer
347 - findImages() content method
348 - Add prependPDF to function list
349 [FIXES]
350 - bug fix
351
352 0.61 22 Apr 2003
353 [ENHANCEMENTS]
354 - Added prependPDF(), deletePages(), and rangeToArray() methods
355 - test.pl overhaul
356 - a little debugging output in getPage()
357
358 0.60 04 Apr 2003
359 [ENHANCEMENTS]
360 - Graphics state and rendering, some little code clean ups
361 - Make output function more mod-perl friendly
362 - Add page content validation
363 - Add parsing of inline images
364 - Add better Tj/TJ handline
365 - Add check option to getpdftext.pl
366 - Simplify BT treatment
367 - Enhance the content reading by using native PDF data type
368 parsing (converted the parsing functions to be either instance
369 or class methods)
370 - Special heuristic treatment of TJs
371 [FIXES]
372 - Add getpdftext.pl to the manifest
373
374 0.50 01 Apr 2003
375 [ENHANCEMENTS]
376 - Add page content parsing
377 - Add script to output page text content
378 - Overhauled fillForm to do things like use inherited form field
379 values, do justified text, do autosized text. This requires
380 the use of the Text::PDF font utilities.
381 - Handle multiline form widgets
382 [FIXES]
383 - Fix font autosizing to account for multiline fields
384
385 0.42 19 Feb 2003
386 [ENHANCEMENTS]
387 - Add getFont() function and supporting script
388 - Add deletePage() function
389 - Add deletepdfpage.pl script
390 [FIXES]
391 - Expect Encoding key in resource dictionary
392 - Expect font size zero in form widgets
393 TO DO: properly treat font size zero as autoscaled font
394
395 0.39 28 Oct 2002
396 [ENHANCEMENTS]
397 - Add return of number of successes to fillformfields
398
399 0.38 28 Oct 2002
400 [ENHANCEMENTS]
401 - Added clearAnnotations and addPageResources
402 [FIXES]
403 - Fix appendPDF
404 - Add appendpdf.pl to the MANIFEST
405
406 0.37 04 Oct 2002
407 [ENHANCEMENTS]
408 - Add appendPDF() function and a script to facilitate PDF merging
409 - Support for removal of decryption blocks
410 - deleteObject function
411 - Add support for the "null" object type
412 [FIXES]
413 - Fix and enable the cleanse function. I can't make this
414 function fail any longer. Yay!
415 - Fix typo for free block in xref dictionary creation
416 - Catch undef objects in fillFormFields
417
418 0.35 29 Jul 2002
419 [ENHANCEMENTS]
420 - Add clearFormFieldTriggers function
421 - Make buildNameTable work on fonts as well as xobjects
422 [FIXES]
423 - Fix dereference() documentation.
424 - Change "if" to "while" in check for cmd line arguments
425 [INTERNALS]
426 - Moved uninlineImages function into library from script
427 - Made some improvements to the embedded image detection logic
428 - Change data structure for nodes from arrayref to object (hashref)
429
430 0.31 14 May 2002
431 [INTERNALS]
432 - Reorganize directory
433
434 0.30 13 May 2002
435 [INCOMPATIBLE]
436 - Change package name from PDF to CAM::PDF
437 [ENHANCEMENTS]
438 - lots and lots of documentation
439 [FIXES]
440 - fix undef bug in getFormField
441
442 0.23 26 Apr 2002
443 bugfixes
444
445 0.22 19 Apr 2002
446 [ENHANCEMENTS]
447 - Password fields
448 - Make Makefile.PL smarter -- read MANIFEST itself
449 [FIXES]
450 - Fix delinearize for non-linearized files
451 - Font tweaks in form filling
452 - Add listpdffields.pl to the manifest
453
454 0.21 15 Apr 2002
455 [FIXES]
456 - Improvements to form handling
457 - Bug fixes in output of xref
458
459 0.20 12 Apr 2002
460 [ENHANCEMENTS]
461 - Add .pl files to manifest
462
463 0.10 12 Apr 2002
464 [INCOMPATIBLE]
465 - Change how the changestring code works with regex values
466 [ENHANCEMENTS]
467 - Form fields
468 - Remove extra files from make process
469 - Support for:
470 different PDF versions
471 concatenated strings
472 \ continued lines
473 \ escaped characters
474 cleaner output formatting
475 some dictionary sorting (special cases)
476 - mac2unix support in asciify
477 - verbose option in extractallimages.pl
478 - pdf versioning in rewritepdf.pl
479 - new revision reversion tool
480 [FIXES]
481 - Fix bug for \n in string
482 - Fix string output implementation (used to break Acrobat5 and Xpdf)
483
484 0.01 13 Mar 2002
485 [ENHANCEMENTS]
486 - JPG options; PDF stamping functions
487 - Cmd line options for tweaking jpg compression
488 - Add JPEG quality flag
489 - Added support for messing with images
490 [FIXES]
491 - Fix bug in escaped strings
492 - Fix permission modification
493
494 0.01 22 Feb 2002
495 [ENHANCEMENTS]
496 - encryption/decryption
497 - some documentation
498
499 0.01 18 Feb 2002
500 [ENHANCEMENTS]
501 - Search-and-replace text in a PDF doc
502 - Program to change all reference objects
503 - add cleanse feature (which breaks acrobat), fix some traverse bugs
504 - Inline image uninlining
505
506 0.00 15 Feb 2002
507 Initial import