[wellwell-devel] [wellwell/zoom] Let [pdf] tag pass through page size parameters.
Git
wellwell-devel at rt.icdevgroup.org
Thu Feb 24 20:26:14 UTC 2011
commit 441794749aa536dd0ee149b96cd3f5d826f51b28
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu Feb 24 21:25:26 2011 +0100
Let [pdf] tag pass through page size parameters.
lib/Vend/PDF.pm | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/lib/Vend/PDF.pm b/lib/Vend/PDF.pm
index 3fda790..ab77616 100644
--- a/lib/Vend/PDF.pm
+++ b/lib/Vend/PDF.pm
@@ -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;
}
@@ -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);
@@ -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;
More information about the wellwell-devel
mailing list