magarwal has asked for the wisdom of the Perl Monks concerning the following question:
The .otf file is present in the local directory, as well as in the $font_dir.Use of uninitialized value in numeric gt (>) at /usr/local/share/perl/ +5.10.0/PDF/API2/Basic/TTF/Cmap.pm line 258. Steps followed : my $font_dir = '/usr/share/fonts/opentype'; my $pdf = PDF::API2->new( -file => $args[0] ); $pdf->mediabox('Letter'); PDF::API2::addFontDirs($font_dir); my $f3 = $pdf->ttfont('TrajanPro-Bold.otf', -encoding=>'latin1');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting error in adding new font to the PDF document
by choroba (Cardinal) on Apr 19, 2010 at 21:15 UTC | |
by magarwal (Novice) on Apr 19, 2010 at 22:05 UTC |