Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail From: JohnF Newsgroups: comp.lang.postscript Subject: (embarrassingly) simple showpage question Date: Wed, 8 Aug 2012 04:58:17 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 58 Message-ID: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1344401897 24382 166.84.1.3 (8 Aug 2012 04:58:17 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 8 Aug 2012 04:58:17 +0000 (UTC) User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (NetBSD/5.1.2 (i386)) Xref: csiph.com comp.lang.postscript:858 I want to create a two/many-page document, e.g., so that gv shows it as two/many pages and allows you to navigate among them. Couldn't find a simple explanation in PLRM or any-color-book.ps, and the little snippet at the bottom of this post just doesnt't work, no matter how I try messing with it. With the first showpage commented, as shown, both pages display overlaid as one page. Uncommented, only the first page shows, and the second is inaccessible. I tried using ImageMagick convert to combine two small one page docs, convert doc1.ps doc2.ps twopagedoc.ps and that works fine. But vi-ing the twopagedoc, I can't for the life of me figure out what it's doing that I'm not, or what it's doing right that I'm doing wrong, or whatever. I tried various things like gsave/grestore, just for kicks, but nothing seems to have any effect. What's the trick? Thanks, %!PS %%Creator: tester %%CreationDate: now %%Title: tester 1.08 1.08 scale 33.33 116.67 translate %%Page: 1 1 %gsave newpath 290 320 moveto 0 214 lineto 11 209 moveto 283 318 lineto 275 317 moveto 23 204 lineto 1 setlinewidth 0.00 0.00 0.78 setrgbcolor stroke %showpage %grestore %%Page: 2 2 %gsave newpath 260 344 moveto 112 69 lineto 122 71 moveto 252 345 lineto 244 347 moveto 131 73 lineto 1 setlinewidth 0.00 0.00 0.78 setrgbcolor stroke showpage %grestore %%EOF -- John Forkosh ( mailto: j@f.com where j=john and f=forkosh )