Thread View: gnu.ghostscript.bug
4 messages
4 total messages
Started by Michael Portz
Tue, 17 Nov 1992 14:20
GS 2.5.2 can't handle PSUTILS output??
Author: Michael Portz
Date: Tue, 17 Nov 1992 14:20
Date: Tue, 17 Nov 1992 14:20
68 lines
3301 bytes
3301 bytes
If I try to put the output of any of PSUTILS programs (pstops,
psnup, psselect, ...) through ghostscript (V2.5.2), I get the
following message:
Error: /invalidaccess in --put--
Operand stack:
-dicttype- /letter {}
Execution stack:
%interp_exit --nostringval-- --nostringval-- false --nostringval-- --
nostringval-- false --nostringval-- --nostringval-- --nostringval-- 0 --no
stringval-- %array_continue --nostringval-- --nostringval--
Dictionary stack:
399/479 7/200
Ghostscript 2.5.2 (9/20/92)
Copyright (C) 1990, 1992 Aladdin Enterprises, Menlo Park, CA.
All rights reserved.
Distributed by Free Software Foundation, Inc.
Ghostscript comes with NO WARRANTY: see the file LICENSE for details.
GS<3>
An example file's first lines:
%!PS-Adobe-2.0
%%Creator: dvips 5.47 Copyright 1986-91 Radical Eye Software
%%Title: diss.dvi
%%Pages: 1 0
%%BoundingBox: 0 0 596 843
%%EndComments
%%BeginProcSet: pstops 1 0
[/showpage/erasepage/copypage]{dup where{pop dup load
type/operatortype eq{1 array cvx dup 0 3 index cvx put
bind def}{pop}ifelse}{pop}ifelse}forall
[/letter/legal/executivepage/a4/a4small/b5/com10envelope
/monarchenvelope/c5envelope/dlenvelope/lettersmall/note
/folio/quarto/a5]{dup where{exch{}put}{pop}ifelse}forall
/lcvx{dup load dup type dup/operatortype eq{pop exch pop}
{/arraytype eq{dup xcheck{exch pop aload pop}
{pop cvx}ifelse}{pop cvx}ifelse}ifelse}bind def
/pstopsmatrix matrix currentmatrix def
/defaultmatrix{pstopsmatrix exch copy}bind def
/initmatrix{matrix defaultmatrix setmatrix}bind def
/pathtoproc{[{currentpoint}stopped{$error/newerror false
put{newpath}}{/newpath cvx 3 1 roll/moveto cvx 4 array
astore cvx}ifelse]{[/newpath cvx{/moveto cvx}{/lineto cvx}
{/curveto cvx}{/closepath cvx}pathforall]cvx exch pop}
stopped{$error/errorname get/invalidaccess eq{cleartomark
$error/newerror false put cvx exec}{stop}ifelse}if}def
/initclip[/pathtoproc lcvx/matrix lcvx/currentmatrix lcvx/initmatrix lcvx/initcl
ip lcvx /newpath lcvx
0 0 /moveto lcvx
595.275591 0/rlineto lcvx 0 822.047244/rlineto lcvx -595.275591 0/rlineto lcvx
/clip lcvx /newpath lcvx /setmatrix lcvx /exec lcvx]
cvx def
/initgraphics{initmatrix newpath initclip 1 setlinewidth
0 setlinecap 0 setlinejoin []0 setdash 0 setgray
10 setmiterlimit}bind def
%%EndProcSet
Does anyone experienced a similiar phenomena? Does anyone detect
the problem faster than me??
Thanks a lot in advance
Michael Portz
email: michaelp@terpi.informatik.rwth-aachen.de
Re: GS 2.5.2 can't handle PSUTILS output??
Author: Alexander Ottl
Date: Thu, 19 Nov 1992 17:57
Date: Thu, 19 Nov 1992 17:57
58 lines
3138 bytes
3138 bytes
In <michaelp.722010014@strange> michaelp@strange.informatik.rwth-aachen.de (Michael Portz) writes:
> If I try to put the output of any of PSUTILS programs (pstops,
> psnup, psselect, ...) through ghostscript (V2.5.2), I get the
> following message:
> Error: /invalidaccess in --put--
> Operand stack:
> -dicttype- /letter {}
> Execution stack:
> %interp_exit --nostringval-- --nostringval-- false --nostringval-- --
> nostringval-- false --nostringval-- --nostringval-- --nostringval-- 0 --no
> stringval-- %array_continue --nostringval-- --nostringval--
> Dictionary stack:
> 399/479 7/200
> Ghostscript 2.5.2 (9/20/92)
> Copyright (C) 1990, 1992 Aladdin Enterprises, Menlo Park, CA.
> All rights reserved.
> Distributed by Free Software Foundation, Inc.
> Ghostscript comes with NO WARRANTY: see the file LICENSE for details.
> GS<3>
[example file deleted]
> Does anyone experienced a similiar phenomena? Does anyone detect
> the problem faster than me??
> Thanks a lot in advance
> Michael Portz
> email: michaelp@terpi.informatik.rwth-aachen.de
Yes, indeed I had the same problem with psutils output and it cost me
some wasted printouts because I couldn't preview the file. Now in the
meantime I acquired a better understanding of PostScript and when I read
your article, I had the idea that maybe we should make systemdict
writable. I just tried it and it did work though it may not really be
the ultimate solution. So try to call gs with the option
-dWRITESYSTEMDICT. Yes, this option is in the manpages, but it is not
easy to find, just like the manpages themselves. (they're not
automatically installed)
Happy Hacking!
Alex.
--
Alexander Ottl "Flash before my eyes
Now it's time to die
e-mail: ottl@informatik.tu-muenchen.de Burning in my brain
ottl@informatik.uni-muenchen.de I can feel the flames"
phone: +49-89-7254136 -- METALLICA, Ride The Lightning.
--
Alexander Ottl "Flash before my eyes
Now it's time to die
e-mail: ottl@informatik.tu-muenchen.de Burning in my brain
ottl@informatik.uni-muenchen.de I can feel the flames"
Re: GS 2.5.2 can't handle PSUTILS output??
Author: Angus Duggan
Date: Fri, 20 Nov 1992 13:56
Date: Fri, 20 Nov 1992 13:56
16 lines
1338 bytes
1338 bytes
In article <michaelp.722010014@strange>, michaelp@strange.informatik.rwth-aachen.de (Michael Portz) writes: > If I try to put the output of any of PSUTILS programs (pstops, > psnup, psselect, ...) through ghostscript (V2.5.2), I get the > following message: > > Error: /invalidaccess in --put-- I don't have any problems with this. You could try the -dWRITESYSTEMDICT flag to ghostscript. I'm using dvips 5.495, so it could be differences in dvips? a. -- Angus Duggan, Department of Computer Science, | PSUtils is available from University of Edinburgh, The King's Buildings, | ftp.dcs.ed.ac.uk in pub/ajcd. Mayfield Road, Edinburgh EH9 3JZ, Scotland. | selects, n-up, booklet & more INET: ajcd@dcs.ed.ac.uk | JANET: ajcd@uk.ac.ed.dcs | PHONE: +44(0)31 650 5126
Re: GS 2.5.2 can't (... NOW IT CAN!)
Author: Michael Portz
Date: Mon, 23 Nov 1992 08:51
Date: Mon, 23 Nov 1992 08:51
7 lines
860 bytes
860 bytes
Thanks to Alexander and Angus, who where the first who pointed out, that -dWRITESYSTEMDICT should help. It does! To Angus: it apparently does not depend on the dvips-version. *** SIGH ***, I MUST start reading PostScript-books. Michael Portz
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads