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: Re: (embarrassingly) simple showpage question Date: Wed, 8 Aug 2012 08:54:54 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 50 Message-ID: References: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1344416094 29203 166.84.1.3 (8 Aug 2012 08:54:54 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 8 Aug 2012 08:54:54 +0000 (UTC) User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (NetBSD/5.1.2 (i386)) Xref: csiph.com comp.lang.postscript:860 ken wrote: > john@please.see.sig.for.email.com says... > >> seems to have any effect. What's the trick? Thanks, Thanks, Ken,... > You can't normally 'navigate' around a PostScript file, because its not > designed that way, [...] My bad saying "navigate". I just meant it colloquially. Ghostview displays a bar with page numbers allowing you to click any page number to view that page. That bar's empty when the document has only one page, and that's what I was seeing -- an empty "navigation bar". > Your example doesn't conform to DSC, and this is almost > certainly why it doesn't work as you exepct. > I would imagine [it needs] at least a '%%Pages: 2'. Nope, at least in this case it didn't need a %%Pages: n in the prolog (which is fortunate because the program generating the ps file won't know how many pages the file will have when it opens and initializes the file). But it >>did<< need a %%Page: 1 1 and a %%Page: 2 2, etc, at the beginning of each page. > Your file also *must* declare itself as being DSC-compliant, > by altering %!PS to one of the form %!PS-Adobe-x.y Yup, that seems to have been my major blunder. Changing my %!PS to your %PS-Adobe-3.0 did the trick. Apparently, I looked at everything in the ImageMagick convert example >>except<< its absolutely very first line. It was right there in front of me all along, and I'd definitely have tried that change had I noticed it. > Tech Note 5001 (available somewhere on the Adobe web site) > documents DSC. Yeah, I did come across several of those 500x- docs googling "postscript page numbers" and stuff like that, trying to figure it out myself. All I could think of doing was looking at the document indexes or table of contents (when available) for showpage and Page, etc. But nothing that I could find that way seemed to address creating multiple-page documents. I'd have thought it would be one of the first things any ps language tutorial would mention. Thanks again, Ken, -- John Forkosh ( mailto: j@f.com where j=john and f=forkosh )