in reply to Converting Text from PDF using CAM::PDF

If you can't get CAM::PDF to work, then try xpdf. It has the pdftotext utility. I tried it on your file, and it worked:
#!/usr/bin/perl use strict; use warnings; open (FILE, "pdftotext -f 1 /root/Desktop/urfile.pdf - |"); my $file = <FILE>; print "$file\n"; close FILE;

Replies are listed 'Best First'.
Re^2: Converting Text from PDF using CAM::PDF
by mr_p (Scribe) on Jun 23, 2010 at 14:50 UTC
    Yes, I am aware of pdftotext...I was really hoping that it was in perl. I always believe that perl have modules for everything and they work, u never have to go outside of it.

    Thanks so much.