I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-12-02 23:04:03.334859-08 by buga
Get formated text from a pdf file
Hi, I need to get the text of a pdf file grouped by their fontsize. I used the following code to get all available fonts:
foreach my $fontname (sort $pdf->getFontNames(1)) { my $font = $pdf->getFont(1, $fontname); print $fontname."\n"; }
I was also able to get the complete text of a pdf page with:
my $page1 = $pdf->getPageContent(1); print $pdf->getPageText();
How can I get the text together with the font. I need to find keywords in headings or bold text. So it would be nice if there is a possibility to get all text with OPBaseFont0, all with OPExtFont0, all with OPExtFont1 and so on... I would be happy about some help with this. Thank you
Direct Responses: 13090 | Write a response
Posted on 2010-12-02 23:09:22.617277-08 by buga in response to 13088
Re: Get formated text from a pdf file
please delete this one I choosed the wrong category
Direct Responses: Write a response