Skip to content

Instantly share code, notes, and snippets.

@willert
Last active August 29, 2015 13:57
Show Gist options
  • Save willert/9347486 to your computer and use it in GitHub Desktop.
Save willert/9347486 to your computer and use it in GitHub Desktop.
Cert builder
package AMG::Certificate;
use 5.014;
use utf8;
use Moose;
use namespace::autoclean;
has content => (
is => 'ro',
writer => 'set_content',
required => 1
);
with (
'Exparse::Report::Role::FileBased',
'Exparse::Report::Role::PDF::Info'
);
with 'Exparse::Report::Role::PDF::Label' => {
name => 'teilnehmername',
required => 1,
x => 298, y => 580, center => 1,
size => 14, color => '#000000', bold => 1,
};
{
my $title = "Teilnahme-Zertifikat für „Abnehmen mit Genuss“";
sub _build_pdf_title { $title }
sub _build_pdf_subject { $title }
}
sub finalize_content {}
__PACKAGE__->meta->make_immutable;
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment