Last active
August 29, 2015 13:57
-
-
Save willert/9347486 to your computer and use it in GitHub Desktop.
Cert builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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