CAM-PDF
view release on metacpan or search on metacpan
[FIXES]
- Decompression of PNG-filtered streams was totally broken.
- Deleting pages now also deletes back references from annotations on that page.
- cleanse() now removes PieceInfo data. I have no idea what
PieceInfo does, but it had a whole bunch of page back links
that broke page deletion.
1.21 13 Aug 2008
[FIXES]
- Permit comments after the %%EOF, like Adobe Reader does. Thanks to
Malcolm Cook for pointing out the incompatibility.
1.20 26 Jun 2008
[ENHANCEMENTS]
- Support for Type 2 encryption (just reading, not writing)
- Support for reading PDFs where the owner and user passwords
are different
- Improvement to performance of node traversal, inspired by
RT #35555 (credit Eric Hall and his anonymous employee).
1.13 23 Apr 2008
t/bugreports.t view on Meta::CPAN
use warnings;
use strict;
use Carp;
$SIG{__WARN__} = $SIG{__DIE__} = \&Carp::confess;
use Test::More tests => 1;
use CAM::PDF;
{
# From an email exchange with Malcolm Cook:
# exiftool is appending a comment after the "%%EOF" at the end of
# the document, which is confusing CAM::PDF. Technically that's
# not allowed (the PDF spec says "The last line of the file
# contains only the end-of-file marker, %%EOF.") but the spec
# also has an implementation note in the appendix that says
# "Acrobat viewers require only that the %%EOF marker appear
# somewhere within the last 1024 bytes of the file."
my $orig_pdf = CAM::PDF->new('t/sample1.pdf') || die $CAM::PDF::errstr;
my $new_pdf_content = $orig_pdf->{content} . "\n%EndExifToolUpdate 621754\n";
( run in 0.417 second using v1.01-cache-2.11-cpan-e9199f4ba4c )