Hi Marto,
I ran your program and i added an additional
functionality,
my $file="parsedtext.txt";
open OUTTRANS1, ">$file";
+
(-w OUTTRANS1) || die "Couldnot open $file! \n";
print OUTTRANS1 $pdf->text;
I saved that parsed text into a file and when i read that
text file i found all the text of the PDF file is not found in that text file and i do not know what might be the reason.
I require the caption of the image present in a PDF file i.e. the description about that image generally starting with
"Figure1.some description of the above image".
and it is present below the image
I thought PDF::OCR2 module would accomplish this task.
But by using PDF::OCR2, the caption of image is not being extracted from the PDF file
and also so many sentences in the PDF file are not being extracted to the text file.
Can you show me a better way to achieve my task?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.