in reply to pdf to text

arunmep, if i understood your question correctly, this may help you. Also take a look at CAM::PDF. Your question is not clear, you frame the question such a way, it should have input, required output and the coding you tried, so that it will be easy for monks to answer exactly else you will get only answers in assumption.

use CAM::PDF; my $self = CAM::PDF::->new('test.pdf'); for (1..$self->{'PageCount'} )#total no of pages { $pages = $self->getPageText($_) ; push (@text, $pages);#push the extracted text into an array }

Updated: Added ->{'PageCount'}. Thanks svenXY.

Prasad

Replies are listed 'Best First'.
Re^2: pdf to text
by svenXY (Deacon) on Jan 12, 2006 at 10:48 UTC
    Hi prasadbabu++,
    thanks for mentioning CAM::PDF - great!
    just as a side note: for me, calling ->new() does not return the number of pages, I had to do the following:
    Regards,
    svenXY