| Business-DPD documentation | Contained in the Business-DPD distribution. |
Business::DPD::Render - render a lable
use Business::DPD::Render::SomeSubclass;
my $renderer = Business::DPD::Render::SomeSubclass->new( $dpd, {
outdir => '/path/to/output/dir/',
originator => ['some','lines','of text'],
});
my $path = $renderer->render( $label );
You should really use a subclass of this module!
my $renderer = Business::DPD::Render::SomeSubclass->new( $dpd, {
outdir => '/path/to/output/dir/',
originator => ['some','lines','of text'],
});
Render a label - HAS TO BE IMPLEMENTED IN SUBCLASS!
RevDev <we {at} revdev.at>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Business-DPD documentation | Contained in the Business-DPD distribution. |
package Business::DPD::Render; use strict; use warnings; use 5.010; use parent qw(Class::Accessor::Fast); use Carp; __PACKAGE__->mk_accessors(qw(_dpd outdir originator));
sub new { my ($class, $dpd, $opts) = @_; my $self = bless $opts, $class; $self->_dpd($dpd); return $self; }
sub render { croak "'render' has to be implemented in a subclass"; } 1; __END__