[Poppler-bugs] [Bug 96644] pdftops 0.45.0 generates ps that gets /rangecheck in --xyshow--

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat May 19 15:02:58 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=96644

--- Comment #5 from William Bader <williambader at hotmail.com> ---
The file works for me now, and I checked my notes, and this file along with
some other files are in the section where I worked on the patch that I
submitted in https://bugs.freedesktop.org/show_bug.cgi?id=63963
I don't remember exactly what happened, but I think that this file generated
the spaces around the bullets by using a 0 size character high up in the font
and showing it in a way that the show command added the space. Since the glyph
was empty, something didn't include it when building the font, and the
generated postscript got a range error trying to access it.
In my patch at 
https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=63963&attachment=128294
the sequence below in PSOutputDev.cc is what stops the range check while
preserving the spacing. For the glyph used for spacing, code > maxGlyph (which
is no loss because the glyph is empty and 0 size) but dx > 0 and needs to be
counted.
William


5179 } else if (maxGlyph > 0 && code > maxGlyph) {
5180            // Ignore this code.
5181            // Using it will exceed the number of glyphs in the font and
generate
5182            // /rangecheck in --xyshow--
5183            if (nChars > 0) {
5184              dxdy[2 * (nChars-1) ] += dx;
5185              dxdy[2 * (nChars-1) + 1 ] += dy;
5186            }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180519/f2bb49e8/attachment.html>


More information about the Poppler-bugs mailing list