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


Groups > comp.lang.postscript > #2122

Re: The first line of PostScript programs

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: The first line of PostScript programs
Date 2014-12-18 13:32 +0000
Message-ID <MPG.2efce7b54fa65ce69898da@usenet.plus.net> (permalink)
References <3aa025db-52a4-4c51-a30e-212c88672407@googlegroups.com> <m6t2a6$hr9$1@reader1.panix.com> <b6fbeb62-31e7-4784-b46e-70c7be8e44f8@googlegroups.com>

Show all headers | View raw


In article <b6fbeb62-31e7-4784-b46e-70c7be8e44f8@googlegroups.com>, 
jdawiseman@gmail.com says...
> 
> Thank you. 
> 
> > It's bad form to claim that when it isn't conforming. 
> 
> I want to claim as much as possible of what is true, but definitely no more than that. 
> 
> 
> please, is there a published standard, or at least a published convention that functions as a standard? 

The PostScreipt Language Reference Manual has some information on page 
801 and 802:

"PostScript programs that have the notation %!PS-Adobe-3.0 as the first 
line of the file are considered to be regular page descriptions that 
conform to the document structuring conventions (DSC) version 3.0. See 
Adobe Technical Note #5001, PostScript Language Document Structuring 
Conventions Specification, for more information about DSC conformance 
and conventions. There is no requirement that a regular page description 
conform to DSC, but it is strongly recommended."

Other than that it is conventional to put %! as the first 2 bytes of a 
PostScript program, but it is not a requirement, nor is it documented 
anywhere, its simply that PostScript programmers generally do, even for 
non-DSC programs.

Some people put %!PS but that's not required either, it does allow you 
to differentiate PostScript and PDF though.

If you do put a full DSC line, then you should be sure that your program 
conforms to DSC (as already mentioned by Tod Dorman) as PostScript 
processors (as opposed to interpreters) may make assumptions about the 
content of the PostScript program if you say that it is DSC-compliant.


		Ken

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


Thread

The first line of PostScript programs jdaw1 <jdawiseman@gmail.com> - 2014-12-17 13:20 -0800
  Re: The first line of PostScript programs rodd@panix.com (Rod Dorman) - 2014-12-17 23:06 +0000
    Re: The first line of PostScript programs jdaw1 <jdawiseman@gmail.com> - 2014-12-18 05:13 -0800
      Re: The first line of PostScript programs ken <ken@spamcop.net> - 2014-12-18 13:32 +0000
        Re: The first line of PostScript programs jdaw1 <jdawiseman@gmail.com> - 2014-12-18 06:02 -0800
          Re: The first line of PostScript programs ken <ken@spamcop.net> - 2014-12-18 15:49 +0000
      Re: The first line of PostScript programs rodd@panix.com (Rod Dorman) - 2014-12-18 17:30 +0000
        Re: The first line of PostScript programs jdaw1 <jdawiseman@gmail.com> - 2014-12-18 13:00 -0800
          Re: The first line of PostScript programs "twenty-six@b-mint.net" <twenty-six@b-mint.net> - 2014-12-19 07:45 +0000
            Re: The first line of PostScript programs ken <ken@spamcop.net> - 2014-12-19 07:53 +0000
          Re: The first line of PostScript programs ken <ken@spamcop.net> - 2014-12-19 07:53 +0000

csiph-web