PDF::API2 fails when xref section has spaces around object index
and count.
For PDF files that have cross reference section as
xref
0 91 # *spaces around obj index and count*
0000000000 65535 f
0000004265 00000 n
0000004160 00000 n
0000000009 00000 n
0000141765 00000 n
PDF::API2 fails with malformed trailer error. When you modify the pdf
file to remove the space like below, it works fine.
instead of
xref
0 91
0000000000 65535 f
0000004265 00000 n
0000004160 00000 n
0000000009 00000 n
0000141765 00000 n
The producer application for the pdf was JAWS PDFLib and pdf version 1.3
Mon Jan 24 13:16:18 2011steve [...] deefs.net - Ticket #47976: Merged into ticket #47974
Mon Jan 24 13:16:18 2011steve [...] deefs.net - Merged into ticket #47974
Mon Jan 24 13:17:21 2011steve [...] deefs.net - Ticket #47975: Merged into ticket #47974
Mon Jan 24 13:17:21 2011steve [...] deefs.net - Merged into ticket #47974
Thu Jun 12 23:38:29 2014steve [...] deefs.net - Correspondence added
Thanks (rather belatedly) for the bug report and patch.
Based on my reading of the PDF specification, extra spaces aren't allowed on that line. However, since the fix is unambiguous and doesn't add much overhead, I've added it anyway (with a warning so that the producer can be fixed).
This change will be included in the next release.
Thu Jun 12 23:38:30 2014The RT System itself - Status changed from 'new' to 'open'
Thu Jun 12 23:38:32 2014steve [...] deefs.net - Status changed from 'open' to 'resolved'
Thu Jun 12 23:39:55 2014steve [...] deefs.net - Status changed from 'resolved' to 'patched'
Fri Jul 04 15:15:19 2014steve [...] deefs.net - Status changed from 'patched' to 'resolved'