Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: External font with PDF::API2::Simple

by Iceman1 (Novice)
on Sep 21, 2011 at 04:23 UTC ( [id://927066]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $font_obj = $pdf->pdf->ttfont('freemono.ttf');
        $pdf->add_font('MonoFont',$font_obj,12);
    
    Can't call method "text" without a package or object reference at /usr
    +/share/perl5/PDF/API2/Simple.pm line 435.
    
  2. or download this
    sub add_font {
      my ($self, $font_name, $font_obj, $font_size) = @_;
    ...
    
      $self->current_font( $self->fonts->{$font_name} );
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://927066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found