Koha-clms/C4/Creators
Dobrica Pavlinusic cbadc3ff96 Bug 7952 - PDF::Reuse under plack writes to console STDOUT instead to browser
Without name option to prFile, PDF::Reuse opens '-' file which is real
console STDOUT on plack so pdf file gets emited to terminal instead of
sending it to browser.

This change creates temporary file using File::Temp, pass it to PDF::Reuse
and then reads it back and prints it out for plack (or CGI) to pick up.

Test secenario:

1. Home › Tools › Patron Card Creator › Manage Card Batches
2. select batch checkbox and click Export
3. select template and click Export
4. click on pdf file to download it

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e2e80737d3)
2012-07-12 22:17:13 -04:00
..
Batch.pm Bug 5284 - Generic report covering various problems with the labels/patron card tests 2010-10-06 12:52:55 -04:00
Layout.pm Bug 7215 - changed callnumber PRESET field to itemcallnumber 2011-12-13 09:35:30 -05:00
Lib.pm bug 4306: respect item-level_itypes when displaying item label batches 2011-02-14 10:09:05 +13:00
PDF.pm Bug 7952 - PDF::Reuse under plack writes to console STDOUT instead to browser 2012-07-12 22:17:13 -04:00
Profile.pm Bug 5284 - Generic report covering various problems with the labels/patron card tests 2010-10-06 13:28:18 -04:00
Template.pm Bug 5284 - Generic report covering various problems with the labels/patron card tests 2010-10-06 13:33:16 -04:00