Bug 7111 - label-print-pdf.pl creates malformed pdf files due to duplicate initialization of PDF::Reuse
Summary: label-print-pdf.pl creates malformed pdf files due to duplicate initializatio...
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Label/patron card printing (show other bugs)
Version: rel_3_0
Hardware: All All
: P1 - high normal
Assignee: Chris Nighswonger
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 01:04 UTC by Daniel Kahn Gillmor
Modified: 2012-10-26 00:41 UTC (History)
1 user (show)

See Also:
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 (571 bytes, patch)
2011-10-28 01:04 UTC, Daniel Kahn Gillmor
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.