in reply to PDF::Tk Background Image
use PDF::Tk; my $pdftk=PDF::Tk->new(pdftk=>'/usr/bin/pdftk'); ... # instead of filling @pdfLines from <POUT> my $pdf_with_bg = ""; # to be filled by pdftk my $pdf_in_memory; { local $/ = undef; $pdf_in_memory = <POUT>; } # whole file as one big + string $pdftk->call_pdftk(\$pdf_in_memory, \$pdf_with_bg, 'background', '/pat +h/to/background.pdf'); print "Content-Type: application/pdf\n"; print "Content-Disposition: attachment; filename=record.pdf\n\n"; print $pdf_with_bg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PDF::Tk Background Image
by qwertywolf (Initiate) on Oct 25, 2016 at 16:35 UTC | |
by soonix (Chancellor) on Oct 25, 2016 at 19:55 UTC | |
by jellisii2 (Hermit) on Oct 25, 2016 at 17:22 UTC | |
by qwertywolf (Initiate) on Oct 25, 2016 at 17:27 UTC | |
by jellisii2 (Hermit) on Oct 25, 2016 at 19:54 UTC |