Skip to content

Commit

Permalink
Let [pdf] tag pass through page size parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Feb 24, 2011
1 parent 6937c06 commit 4417947
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Vend/PDF.pm
Expand Up @@ -42,7 +42,7 @@ sub pdf {
my (%input, $locale, $ret);

if ($function eq 'combine') {
$ret = combine($output, $opt->{files});
$ret = combine($output, $opt->{files}, $opt);
return;
}

Expand Down Expand Up @@ -125,7 +125,8 @@ sub pdf {
my ($pdf);

$pdf = new Template::Zoom::PDF (template => $html_object,
import => $opt->{import});
import => $opt->{import},
page_size => $opt->{page_size});

$pdf->process($output);

Expand All @@ -137,10 +138,10 @@ sub pdf {
}

sub combine {
my ($output, $files) = @_;
my ($output, $files, $opt) = @_;
my ($pdf, $import);

$pdf = new Template::Zoom::PDF (file => $output);
$pdf = new Template::Zoom::PDF (file => $output, page_size => $opt->{page_size});

$import = new Template::Zoom::PDF::Import;

Expand Down

0 comments on commit 4417947

Please sign in to comment.