in reply to Re^3: CAM::PDF w/ Text::PDF::FlateDecode
in thread CAM::PDF w/ Text::PDF::FlateDecode
.. I obtained this error:use strict; use warnings; use CAM::PDF; my $pdf = CAM::PDF->new("test.pdf"); # test.pdf is the existing pdf my $string = $pdf->getPageText(1); open (C, ">", "test.txt"); print C $string; # print extracted string
the really strange thing was that adding ONE LINE at the beggining of the program:Failed to open filter FlateDecode (Text::PDF::FlateDecode) Unrecognized type in parseAny: 1 ═╩▓▀O▒:♠n╩...
everything worked fine and no error message was displayed.@INC=('C:/Perl/lib','C:/Perl/site/lib','.'); # THIS LINE IS ADDED use strict; use warnings; use CAM::PDF; my $pdf = CAM::PDF->new("test.pdf"); # test.pdf is the existing pdf my $string = $pdf->getPageText(1); open (C, ">", "test.txt"); print C $string; # print extracted string
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: CAM::PDF w/ Text::PDF::FlateDecode
by ravi_kk (Initiate) on Aug 07, 2009 at 13:30 UTC | |
|
Re^5: CAM::PDF w/ Text::PDF::FlateDecode
by ravi_kk (Initiate) on Aug 07, 2009 at 13:39 UTC | |
|
Re^5: CAM::PDF w/ Text::PDF::FlateDecode
by Anonymous Monk on Oct 29, 2008 at 11:14 UTC | |
by pagani.fr (Initiate) on Oct 29, 2008 at 15:21 UTC | |
by pagani.fr (Initiate) on Oct 30, 2008 at 12:26 UTC | |
by jasman (Initiate) on Jun 21, 2010 at 18:24 UTC |