Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #860

Re: (embarrassingly) simple showpage question

From JohnF <john@please.see.sig.for.email.com>
Newsgroups comp.lang.postscript
Subject Re: (embarrassingly) simple showpage question
Date 2012-08-08 08:54 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <jvt9gu$sgj$1@reader1.panix.com> (permalink)
References <jvsrl9$npu$1@reader1.panix.com> <MPG.2a8c1eaa69cee005989898@usenet.plus.net>

Show all headers | View raw


ken <ken@spamcop.net> 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 )

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

(embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 04:58 +0000
  Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-08 07:59 +0100
    Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 08:54 +0000
      Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-08 10:17 +0100
        Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 10:08 +0000
          Re: (embarrassingly) simple showpage question tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-08 22:07 -0400
            Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-09 05:40 +0000
              Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-09 08:44 +0100
                Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-09 09:38 +0000
                Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-10 06:24 +0000

csiph-web