Business::DPD::Render::PDFReuse::SlimA6 - render a label in slim A6 using PDF::Reuse
use Business::DPD::Render::PDFReuse::SlimA6; my $renderer = Business::DPD::Render::PDFReuse::SlimA6->new( $dpd, { outdir => '/path/to/output/dir/', originator => ['some','lines','of text'], }); my $path = $renderer->render( $label );
Render a DPD label using a slim A6-based template that also fits on a A4-divided-by-three-page. This is what we need at the moment. If you want to provide other formats, please go ahead and either release them as a standalone dist on CPAN or contact me to include your design.
$renderer->_multiline( ['some','lines of','text'], { fontsize => 6, base_x => 35, base_y => 120, rotate => 270, # or 0 align => }, )
Render several lines of text using a some very crappy placing "algorithm". Patches welcome!
Note: Input is expected to be utf8 and will be encoded as latin1 until someone can show me how to stuff utf8 into PDF::Reuse.
utf8
latin1
PDF::Reuse
my $pdf_template = $class->inc2pdf(__PACKAGE__);
Returns the path to the PDF template with the same name as the implementing class (the PDF templates are installed alongside their class).
Thomas Klausner <domm {at} cpan.org> RevDev <we {at} revdev.at>
<domm {at} cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Business::DPD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::DPD
CPAN shell
perl -MCPAN -e shell install Business::DPD
For more information on module installation, please visit the detailed CPAN module installation guide.