Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: no responses for the execution of the code

by vinoth.ree (Monsignor)
on Feb 22, 2013 at 05:39 UTC ( #1020071=note: print w/replies, xml ) Need Help??

in reply to no responses for the execution of the code

Hi warmsuns, as you need to convert the pdf to text you can use the existing CPAN modules




Untested code:

use strict; use warnings; use utf8; use CAM::PDF; use CAM::PDF::PageText; my $FileName = shift || die "Usage:Command line argument Missing. Give + a PDF file as argument\n"; my $Pdf_Obj = CAM::PDF->new($FileName); print text_from_page(1); sub Text_From_Page { my $pg_num = shift; return CAM::PDF::PageText->render($pdf->getPageContentTree($pg_num +)); }

Replies are listed 'Best First'.
Re^2: no responses for the execution of the code
by warmsuns (Initiate) on Feb 25, 2013 at 21:16 UTC

    Thank you so much .I didn't expect so many responses form the forum. it feels so good!I am a thesis student in computer science ,and my professor asked my to study the perl code some students did before the purpose of which is to get the semantic head from a paper.It takes time to read what other has already finished and I have so many questions just don't know where to go for help:) Thanks again for all of you !

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020071]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2018-03-17 22:42 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (227 votes). Check out past polls.