Article View: comp.lang.postscript
Article #2150Re: Save/restore and showpage (in the Orange Book)
From: Glenn Reid
Date: Tue, 01 May 1990 03:10
Date: Tue, 01 May 1990 03:10
27 lines
1486 bytes
1486 bytes
>Chris Lishka of Wisconsin State Laboratory of Hygiene (lishka@uwslh.UUCP)
>reported a problem of getting blank pages when moving the showpage outside
>of the save/restore pair.
>
> INSIDE: OUTSIDE:
>%% Page: ? 1 %% Page: ? 1
>save save
> % Page drawing code here % Page drawing code here
>showpage restore restore showpage
My guess is that there is a frame buffer setup command somewhere inside
the save/restore. If you execute some operator like "legal" or "a4" or
"letter", it initializes the device, which includes erasing the page.
save/restore preserve the current device, too, so if you said something
like this:
save
legal
0 0 moveto 100 100 lineto stroke
restore
showpage
You might well get a blank page if the default device was "letter" or "a4".
I haven't actually tried this for a while; it's from recollection....
Glenn
Technical Details
Message-ID:
<171@heaven.woodside.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!decwrl!adobe!heaven!glennReferences:
<1990Apr26.173405.11940@uwslh.slh.wisc.edu> <9073@pt.cs.cmu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!decwrl!adobe!heaven!glenn From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.lang.postscript Subject: Re: Save/restore and showpage (in the Orange Book) Message-ID: <171@heaven.woodside.ca.us> Date: 1 May 90 03:10:08 GMT References: <1990Apr26.173405.11940@uwslh.slh.wisc.edu> <9073@pt.cs.cmu.edu> Reply-To: glenn@heaven.UUCP (Glenn Reid) Organization: Skyline Press, Woodside CA Lines: 27