Perl: the Markov chain saw | |
PerlMonks |
PDF::API2 fontby shibu_pu (Acolyte) |
on Sep 23, 2009 at 06:28 UTC ( [id://796896]=perlquestion: print w/replies, xml ) | Need Help?? |
shibu_pu has asked for the wisdom of the Perl Monks concerning the following question:
I am using the PDF::API2 module for creating pdf files. How can I use an otf font in my pdf? I used PDF::API2::addFontDirs '/home/user/www/project/fonts/'; my $font = $pdf->ttfont('/home/user/www/project/fonts/myfont.otf', -encoding => 'latin1'); $text->font($font, 12); $text->translate(100, 100); $text->text('Hello World'); But it doesn't work. Anybody having an idea? Thanks
Back to
Seekers of Perl Wisdom
|
|