Template::Flute::PDF::Image - PDF image class
new Template::Flute::PDF::Image(file => $file, pdf => $self->{pdf});
Create Template::Flute::PDF::Image object with the following parameters:
Image file (required).
Template::Flute::PDF object (required).
Returns image information, see Image::Size.
Get image width:
$image->width;
Set image width:
$image->width(200);
Returns image width in both cases.
Get image height:
$image->height;
Set image height:
$image->height(100);
Converts image to FORMAT. This is necessary as PDF::API2 does support only a limited range of formats.
Stefan Hornburg (Racke), <racke@linuxia.de>
Copyright 2011 Stefan Hornburg (Racke) <racke@linuxia.de>.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Template::Flute::PDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Flute::PDF
CPAN shell
perl -MCPAN -e shell install Template::Flute::PDF
For more information on module installation, please visit the detailed CPAN module installation guide.