[Israel.pm] How to get TEXT from PDF ?

Offer Kaye offer.kaye at gmail.com
Sun Jun 28 04:14:51 PDT 2009

On Sun, Jun 28, 2009 at 12:36 PM, Roey Almog (Infoneto Ltd) wrote:
> Hi,
> I tried using CAM::PDF to get text out of PDF's in the following way:

I haven't used it myself but http://search.cpan.org/dist/PDF-API2
seems to be fairly updated.
Try out the "stringify" method, I would guess something like:

use PDF::API2;
my $pdf = PDF::API2->open('demo.pdf');
my $page = $pdf->openpage(1);
print $pdf->stringify;

Offer Kaye

More information about the Perl mailing list