Summary: | PS to PCL transformation fails with "Error: invalidaccess; OffendingCommand: put" | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Debashis Sahoo <debashis.sahoo> |
Component: | PS Interpreter | Assignee: | Marcos H. Woehrmann <marcos.woehrmann> |
Status: | NOTIFIED WORKSFORME | ||
Severity: | critical | CC: | debashis.sahoo |
Priority: | P1 | ||
Version: | 8.71 | ||
Hardware: | All | ||
OS: | All | ||
Customer: | 130 | Word Size: | --- |
Description
Debashis Sahoo
2011-09-23 11:03:23 UTC
This is not a Ghostscript bug. The problem is caused by an assumption made by the sample PS program that findfont always returns a global font when the current allocation mode is global. This is not the case when TrueType fonts are loaded by Ghostscript. The program should be modified as /pa_ReEncode { pa_reencsmalldict begin /glob currentglobal def % remember the global flag % ... /basefontdict basefontname findfont dup gcheck setglobal % set the matching global mode def % ... glob setglobal % restore the global flag end } def The user can also upgrade to v. 9.00 and higher. New versions load TrueType fonts differently, and the font matches the assumption. However, it is still possible to construct a font (e.g. Type 3) that will fail the sample PS file. Hi Alex, This issue observed when -I/home/syed/install/os41/lib/FONTS/Unicode passed to the GS but when we passed -I/home/syed/install/os41/lib/FONTS/Soft_Horizons this issue never observed. The suggestion provoded by you, upgrade to the version higher or equal to 9.0, is not possible now because of other constraints. So, a solution with respect to the GS version 8.71 will be greatly appreciated. Thanks, Debashis Hi, Could you please update us about the resolution for this issue? Please let us know if anything from our end need to updated. Thanks, Debashis It is not possible for us to backport the change that fixed the issue between 8.71 and 9.00, the change to a different font renderer was extensive. Since we have determined that the PostScript file is making incorrect assumptions about how TrueType fonts are loaded into memory and have provided a suggested fix I don't believe there is anything else we can do. Hi Macro, Could you please let us know exact version or, latest version of GS so that we can test? Also it will be good if we got all the bug/issue details of your recommended version of GS. Thanks, Debashis The latest version of Ghostscripts is 9.04; I've sent you an email with the download instructions. Documentation included with the release gives updates on what changes have been made and which bugs have been fixed. If you have further questions please email me directly. |