perlPsycho has asked for the wisdom of the Perl Monks concerning the following question:
Perl Monks I seek your wisdom for a Question, I am yet to find an Answer for days. I am using CAM::PDF Module to extract the text content present in PDF in PERL.
My Code:My PDF Table Format:use CAM::PDF; my $pdfFile=CAM::PDF->new('save.pdf'); my $text = $pdfFile->getPageText(1);
My Result:Date Value1 Value2 03/31/3016 24,17523 0.00015960 02/29/3016 27,69368 0.000177510 01/31/3016 31,64637 0.00020850 12/31/3015 39,89056 0.00025700 11/30/3015 49,58176 0.000317820 10/31/3016 61,14936 0.00091970
Date Value1 Value2 03/31/3016 24,17523 0.000154960 02/29/3016 27,69368 0. +000177510 01/31/3016 31,64637 0.000202850 01/31/3016 31 +,64637 0.000202850 ...$
How Should My Output Be:
When Given Run time input : Date, It should Print all the dates present under Date.
When Given Run time input : Value1, It should Print all values present under value1.
My Question:
How Do I read a table present in a PDF using Perl..??
And How can I use it Display my results as such..??
Or is it even possible to read a Table in PDF in PERL..?
THANK YOU SO MUCH IN ADVANCE...
It Would be great if you could Help...
|
---|