Bug 694964 - pdfwrite throw rangecheck, while ppmraw (or othes) works, on a few files.
Summary: pdfwrite throw rangecheck, while ppmraw (or othes) works, on a few files.
Status: RESOLVED DUPLICATE of bug 694371
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 14:18 UTC by Hin-Tak Leung
Modified: 2014-01-21 01:33 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hin-Tak Leung 2014-01-20 14:18:02 UTC
A few files threw rangecheck and continues with pdfwrite and have some
graphics missing, compared to the silent ppmraw results.

tests_private/pdf/PDF_1.7_FTS/fts_17_1700.pdf.pdf tests_private/pdf/PDF_1.7_FTS/fts_17_1701.pdf.pdf
tests_private/pdf/PDF_1.7_FTS/fts_17_1714.pdf.pdf
tests_private/pdf/PDF_1.7_FTS/fts_17_1715.pdf.pdf
tests_private/pdf/PDF_1.7_FTS/fts_18_1805.pdf.pdf
tests_private/pdf/PDF_1.7_FTS/fts_18_1812.pdf.pdf

That probably means there is room for improvement in the pdfwrite code, and that the current pdfwrite output for these files aren't correct.

I came across this when I accidentally made the rangecheck into a segfault in one of my tests on earlier versions of the j2k code.

It is possible that this may already been reported by Marcos?
Comment 1 Ken Sharp 2014-01-21 01:33:53 UTC
At least the first of these, almost certainly all of them, are a duplicate of Bug #694371 "pdfwrite doesn't handle 16 bpc images".

In this particular case the 'images' are actually soft masked images, and that means we can't fallback either. 16 bpc images are rare so I'mleaving teh original enhancement request in place, if we start to see more 16 bpc images, or this becomes a customer problem, we'll revisit it.

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