Article View: gnu.ghostscript.bug
Article #363Problems with restore (and also dictionaries)
From: Nick Holloway
Date: Thu, 10 Sep 1992 17:26
Date: Thu, 10 Sep 1992 17:26
27 lines
1518 bytes
1518 bytes
I have just discovered a problem with Ghostscript 2.5. It was triggered
by the code generated by psraster. In this it reclaims VM by performing a
'restore save' in the procedure used to decode the image data. The actual
code is of the following form:
[...] {restore save GetImageRow} save 6 1 roll image
[...]
restore
This works fine on the printers, but causes Ghostscript to complain:
Error: /invalidrestore in --restore--
Operand stack:
-savetype-
The following is a small fragment that will also demonstrate the error:
save 10 { (Hello, World!\n) print restore save } repeat restore
Another (percieved) mis-feature of Ghostscript is the way it will
automatically expand dictionaries. This recently lead to much head
scratching, since we could preview the file, but it would not print.
Is there a way of stopping the dictionaries being expanded?
--
Nick Holloway | `O O' | alfie@dcs.warwick.ac.uk, alfie@warwick.UUCP,
[aka `Alfie'] | // ^ \\ | ..!uunet!mcsun!uknet!warwick!alfie
Technical Details
Message-ID:
<1992Sep10.172611.25400@dcs.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dcs.warwick.ac.UK!alfieShow Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!dcs.warwick.ac.UK!alfie From: alfie@dcs.warwick.ac.UK (Nick Holloway) Subject: Problems with restore (and also dictionaries) Message-ID: <1992Sep10.172611.25400@dcs.warwick.ac.uk> Sender: gnulists@ai.mit.edu Organization: Department of Computer Science, Warwick University, England Distribution: gnu Date: Thu, 10 Sep 1992 17:26:11 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 28