Bug 692601 - glyph index c0000000 out of range
Summary: glyph index c0000000 out of range
Status: RESOLVED WORKSFORME
Alias: None
Product: GhostPCL
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 9.02
Hardware: PC Windows 7
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 22:47 UTC by Florian Rausch
Modified: 2011-10-17 09:08 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Source PCL file (76.47 KB, application/octet-stream)
2011-10-15 22:47 UTC, Florian Rausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Rausch 2011-10-15 22:47:36 UTC
Created attachment 8012 [details]
Source PCL file

Hi,

I am trying to convert the attached file to a PDF with this command:


pcl6.exe -J"@PJL SET PAPER=A4" -sDEVICE=pdfwrite -dTextAlphaBits=4 -dNOPA
USE -sOutputFile="output.pdf" "Auftrag1_PCL-Quelldatei.prn"

... with this result:

glyph index c0000000 out of range
glyph index c0000000 out of range
glyph index c0000000 out of range
glyph index c0000000 out of range


It seems that some of the text is not properly printed/mapped like the top-left-most headline.

If this is not a bug - can you give me some hints how to track down the problem?

Thanks!
Comment 1 Ken Sharp 2011-10-16 08:53:50 UTC
(In reply to comment #0)
 
> pcl6.exe -J"@PJL SET PAPER=A4" -sDEVICE=pdfwrite -dTextAlphaBits=4 -dNOPA
> USE -sOutputFile="output.pdf" "Auftrag1_PCL-Quelldatei.prn"
 

> It seems that some of the text is not properly printed/mapped like the
> top-left-most headline.
> 
> If this is not a bug - can you give me some hints how to track down the
> problem?

Try using a current version of the software, 9.04 was released 2 months ago and is the current release.

TextAlphaBits only affects rendering, don't us it with pdfwrite.
Comment 2 Florian Rausch 2011-10-16 11:11:22 UTC
Thank you. 9.04 produces the same output and message.

What I don't understand - how to use for example the "-dPDFWRDEBUG" switch? Where can I see/find the log?

Thanks.
Comment 3 Ken Sharp 2011-10-16 13:12:27 UTC
(In reply to comment #2)

> Thank you. 9.04 produces the same output and message.

Well the current master code works for me, the output is the same as the rendered output.

 
> What I don't understand - how to use for example the "-dPDFWRDEBUG" switch?

I'm not aware of such a switch, where did you find it documented ?


> Where can I see/find the log?

The PostScript back channel.
Comment 4 Florian Rausch 2011-10-16 13:27:40 UTC
Hm, what does it mean, it works for you? It works for me too basically, but the mentioned string ("Autohaus Diehl..") is pixelated (see when zoomed) and can't be selected within a PDF viewer.

--

I just assumed that there might be the same switched as for Ghostscript, like mentioned here: http://www.ghostscript.com/doc/current/Use.htm#Debugging
Comment 5 Ken Sharp 2011-10-16 20:08:23 UTC
(In reply to comment #4)
> Hm, what does it mean, it works for you? It works for me too basically, but the
> mentioned string ("Autohaus Diehl..") is pixelated (see when zoomed) and can't
> be selected within a PDF viewer.

That simply means that the text isn't 'text'. You said:

"It seems that some of the text is not properly printed/mapped like the
top-left-most headline."

For met the appearance is the same as the rendered page, so I don't see a problem. There is absolutely no guarantee that what you see as text is actually text, it could easily be an image. pdfwrite is no capable of turning an image in the source into text in the destination. Is there some reason to think that the 'text' in that location is text ?

It will take some considerable time for me to reduce a 3 page PCL file, mostly text, to the basic offending area to determine whether there is in fact any actual text in the input file.
Comment 6 Arthur Ford 2011-10-17 01:15:28 UTC
There is text representing 'Autohaus Diehl..' from the upper-left of page 1, however the characters are embedded, uses symbol set 16A, and the PCL driver generated code points which were not a precise match to ASCII, so Autohaus in the PCL became 'Dxwrkdxv#Glhko...' starting at hex offset 72677.
Comment 7 Arthur Ford 2011-10-17 01:17:03 UTC
Meant decimal offset 72677 (from within a hex editor).
Comment 8 Ken Sharp 2011-10-17 09:08:54 UTC
(In reply to comment #6)
> There is text representing 'Autohaus Diehl..' from the upper-left of page 1,
> however the characters are embedded, uses symbol set 16A, and the PCL driver
> generated code points which were not a precise match to ASCII, so Autohaus in
> the PCL became 'Dxwrkdxv#Glhko...' starting at hex offset 72677.

This is why the text is not searchable. The reason that it is bitmapped is because the original font in the PCL is a bitmap font. As to why Acrobat cannot highlight the text, that is a question for Adobe....