in reply to Re^7: CAM::PDF w/ Text::PDF::FlateDecode
in thread CAM::PDF w/ Text::PDF::FlateDecode
I am a novice perl user. I'm confused. I've downloaded CAM-PDF-1.52 and Crypt-RC4-2.02. I still get the noted error message about ThateDecode. So I downloaded Text-PDF-0.29 which has a dependency for IO-Compress-2.027. I downloaded the dependencies for IO-Compress-2.027 as well.
I still get the error. This is a huge brick wall for me and I'd appreciate any help in climbing over it.
The perl script that I downloaded to read the text of the PDF is:
#!/usr/bin/perl
use strict;
use CAM::PDF; # Name of the Perl Module
use CAM::PDF::Content; # Name of the Perl Module
my $file_name = shift;
my @lines;
my $pdf = CAM::PDF->new($file_name);
for my $page (1 .. $pdf->numPages()) {
my $text = $pdf->getPageText($page);
@lines = split (/\n/, $text);
foreach (@lines) {
print "$_\n";
}
}
Currently Compress::Zlib is uninstalled.
Thanks,
Jim