in reply to Re: Re: OCR Code
in thread OCR Code
Can you show us your code that uses PDF::API2?
It should be a simple matter of changing or adding a font definition to your code.
You should have a font definition in you want to look something like:
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'); # ....
cheers,
J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: OCR Code
by Anonymous Monk on Dec 15, 2003 at 15:28 UTC |