[cups.bugs] [HIGH] STR #1350: ESP Ghostscipt 815.01 fails whenusing "<< /Pagersize [594 841] >> setpagedevice"

Helge Blischke h.blischke at srz.de
Wed Nov 30 05:49:44 PST 2005


Petr Sumbera wrote:
> 
> [STR New]
> 
> ESP Ghostscript fails when used for viewing PostScript files containing
> following line:
> 
> << /Pagersize [594 841] >> setpagedevice
> 
> ---
> 
> When PostScript file contains following line, ESP Ghostscript proceed
> without error:
> 
> << /Pagersize [594 841]
> 
> ---
> 
> Problem appears in the following version of Ghostscript:
> 
> ESP Ghostscipt 815.01 (Linux, Solaris)
> 
> ---
> 
> Problem doesn't appear in the following versions of Ghostscript:
> 
> GPL Ghostscript 8.15 (tested on Linux)
> ESP Ghostscipt 7.07.1 (tested on Solaris)
> 
> ---
> 
> Output from ESP Ghostscript:
> 
> ESP Ghostscript 815.01 (2005-09-22)
> Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> Error: /configurationerror in --setpagedevice--
> Additional information: [/Pagersize [594 841]]
> Operand stack:
>    --dict:1/1(L)--
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--
> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
> --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3
>   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2
> --nostringval--   --nostringval--   --nostringval--   2   %stopped_push
> --nostringval--   1   3   %oparray_pop   --nostringval--   --nostringval--
>   --nostringval--   --dict:1/2(L)--   --nostringval--   2   %dict_continue
> Dictionary stack:
>    --dict:1114/1686(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--
> Current allocation mode is local
> Current file position is 46
> ESP Ghostscript 815.01: Unrecoverable error, exit code 1
> 
> ---
> 
> Link: http://www.cups.org/str.php?L1350
> Version: 8.15.1

I haven't looked into the sources, but the key "/Pagersize" for the page device dictionary
is not legal, and it is up to the implementer(s) how to deal with unsupported keys (e.g. to silently
ignore them or perform a certain policy or simply raise a configuration error).

The key shoule read
	/PageSize

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list