Bug 7111

Summary: label-print-pdf.pl creates malformed pdf files due to duplicate initialization of PDF::Reuse
Product: Koha Reporter: Daniel Kahn Gillmor <dkg>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: CLOSED WONTFIX QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: P1 - high CC: chris
Version: rel_3_0   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: remove duplicate PDF::Reuse initialization

Description Daniel Kahn Gillmor 2011-10-28 01:04:00 UTC
Created attachment 6086 [details] [review]
remove duplicate PDF::Reuse initialization

on koha 3.0.6, labels/label-print-pdf.pl appears to mistakenly initialize PDF::Reuse twice (by invoking prInitVars() and prFile() in two different places).

This causes the output pdf file to always be broken (try passing it to pdfinfo from poppler-utils).

The attached patch should resolve the issue.
Comment 1 Chris Nighswonger 2011-10-28 11:54:38 UTC
3.0 is quite old at this point and label-print-pdf.pl is long since removed. I would recommend upgrading to the most recent stable release 3.6.0.