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


Groups > comp.lang.postscript > #859

Re: (embarrassingly) simple showpage question

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: (embarrassingly) simple showpage question
Date 2012-08-08 07:59 +0100
Message-ID <MPG.2a8c1eaa69cee005989898@usenet.plus.net> (permalink)
References <jvsrl9$npu$1@reader1.panix.com>

Show all headers | View raw


In article <jvsrl9$npu$1@reader1.panix.com>, 
john@please.see.sig.for.email.com says...

> seems to have any effect. What's the trick? Thanks,

You can't normally 'navigate' around a PostScript file, because its not 
designed that way, there is no way to tell where one page starts and 
another ends (without interpreting the whole document). In addition its 
perfectly possible to have a PostScript program which only works if you 
execute the pages in the correct order, because later pages rely on 
definitions from earlier pages, such as fonts.

In order to permit this navigation the file needs to be DSC (Document 
Structuring Convention) compliant. That is, it needs to have certain 
comments present to enable the application to know how many pages are in 
the program, and where the beginning of each one is, and also needs to 
be constructed so that each page is atomic (or at least relies only upon 
setup done in a defined, commented, section)

Ideally it also needs to know the size of each page. Your example, while 
perfectly sound PostScript, doesn't conform to DSC, and this is almost 
certainly why it doesn't work as you exepct. 

I don't know exactly what it is that the application in question needs 
to allow this to happen, but I would imagine at least a '%%Pages: 2'. 
Your file also *must* declare itself as being DSC-compliant, this is 
done by altering the conventional %!PS comment to one of the form %!PS-
Adobe-x.y where x and y are the major and minor revision numbers of the 
DSC specification which the document complies with.

Tech Note 5001 (available somewhere on the Adobe web site) documents 
DSC.



				Ken

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