Bug 10512

Summary: Label PDF Export Corrupted
Product: Koha Reporter: dgchina <d.lyons>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P5 - low    
Version: 3.12   
Hardware: PC   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Corrupted PDF

Description dgchina 2013-06-27 05:38:31 UTC
Created attachment 19254 [details]
Corrupted PDF

I created a batch of 40 spine labels, but when I export it as a PDF the PDF is corrupted (see attached. I believe its a bad header, but I'm not certain). If I remove any item and export 39 items instead of 40, the PDF has no problems. At first I thought this was because one item was incorrectly formatted, but it appears to be arbitrary which item I remove. Is there a cache that needs to be cleared in the command line or something? I deleted all existing batches and redid the same batch and still had the same problem.
Comment 1 Chris Nighswonger 2013-06-27 11:26:39 UTC
Opening the attached pdf file in a plain text editor shows this error:

<h1>Software error:</h1>
<pre>Wide character in compress at /usr/share/perl5/PDF/Reuse.pm line 819
</pre>
<p>
For help, please send mail to the webmaster (<a href="mailto:[no address given]">[no address given]</a>), giving this error message 
and the time and date of the error.

</p>

This is probably related to bug 8375, so I'm marking it as a duplicate of that bug.

*** This bug has been marked as a duplicate of bug 8375 ***