in reply to Re: Re: Re: OCR Code
in thread OCR Code
I run the following code for testing.
Basically it's same piece of code using OCR_A font.
It's giving me below error.
use PDF::API2; my $doc = PDF::API2->new( -file => 'mypdf.pdf' ); my $page = $doc->page; my $txt = $page->text; my $font = $doc->corefont('OCR_A',1); # this font name may be incorrec +t.. $font->encode('latin1'); $txt->font($font,10); $txt->lead(10); $txt->text('Print to PDF file in the font set above');
Error
thanks TejasC:\www\cgi-bin>perl tej.pl requested font 'ocra' not installed at c:/perl/site/lib/PDF/API2/Core +Font.pm li ne 84.
Edited by BazB - added code tags.
|
|---|