Summary: | Error: /rangecheck in --.buildshading2-- | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Matt Kynx <matt> |
Component: | PDF Interpreter | Assignee: | Alex Cherepanov <alex> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.53 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
patch
improved patch |
Description
Matt Kynx
2005-12-09 08:41:11 UTC
Little can be done without the sample file. You can try to remove the sensitive parts of the document usung Adobe Acrobat. File attachments can be marked private. Private attachments can be accessed by a small number of Ghostscript developers who have a NDA with Artifex Software. Created attachment 1850 [details]
PDF causing the error
Created attachment 1851 [details]
patch
Some bounding boxes in the sample file have y0 > y1 .
Normalize the BBox in the shading dictionary when needed.
Note: There are procedures called normrect and normrect_elems in lib/pdf_main.ps which will 'normalize' a rectangle. Created attachment 1852 [details]
improved patch
A shorter patch that uses an existing function.
Ghostscript 8.53 with the improved patch works a charm! Many thanks for looking into this. Matt Alex please commit the patch and close the bug. The fix is committed to the HEAD branch. |