Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: no responses for the execution of the code

by vinoth.ree (Parson)
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

PDF::API2

CAM::PDF

CAM::PDF::PageText

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 +)); }


Comment on Re: no responses for the execution of the code
Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-08-23 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls