Article View: adobe.postscript.programming
Article #314Re: Understanding Post Script
From: Dan Coby
Date: Mon, 21 Jul 2008 22:38
Date: Mon, 21 Jul 2008 22:38
30 lines
2826 bytes
2826 bytes
<Nagendra_Kuma@adobeforums.com> wrote in message news:59b5e758.0@webcrossing.la2eafNXanI...
> even installed "GhostView" to see the result. but no luck in it. since my programs looks like
> below,output was empty page.
>
> %PS mark 0.5 setlinewidth currentpoint
> %PS 22 1 50 {dup 0 0 t! (B) eq {20 99 t! show crlf}{exit}ifelse }for
> %PS dup 22 ne{3 1 roll gsave
> %PS currentpoint -6 8 translate 4 -2 roll moveto currentpoint exch pop 546 exch lineto
> %PS dup 546 exch lineto lineto closepath stroke grestore
> %PS 22 sub 12 mul}{pop pop pop 0}ifelse
> %PS currentpoint
> %PS 26 1 49 {dup 0 0 t! (D) eq {20 99 t! show crlf}{exit}ifelse }for
> %PS dup 26 ne{3 1 roll gsave
> %PS currentpoint -6 8 translate 4 -2 roll moveto currentpoint exch pop 546 exch lineto
> %PS dup 546 exch lineto lineto closepath stroke grestore
> %PS 26 sub 12 mul}{pop pop pop 0}ifelse
> %PS add neg 0 exch translate
> %PS cleartomark
The '%' character is used to mark the start of comments in Postscript. Thus if your
lines all begin with '%PS', then they will all be treated as comments and have no
effect.
If you remove the %PS then there are various other errors within your code
fragment. Ghostview has a display window that shows the error messages.
The basic reference for the Postscript language is the 'Postscript Language
Reference Manual 3rd Edition' as known as PLRM 3rd.
http://www.adobe.com/products/postscript/pdfs/PLRM.pdf
Technical Details
Message-ID:
<ncKdnV4gZ8Z9khjVnZ2dnUVZ_gWdnZ2d@earthlink.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mailReferences:
<59b5e758.-1@webcrossing.la2eafNXanI> <59b5e758.0@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,9dc919566bb30bed X-Google-Attributes: gid10c61a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 21 Jul 2008 17:38:23 -0500 From: "Dan Coby" <adcoby@earthlink.net> Newsgroups: adobe.postscript.programming References: <59b5e758.-1@webcrossing.la2eafNXanI> <59b5e758.0@webcrossing.la2eafNXanI> Subject: Re: Understanding Post Script Date: Mon, 21 Jul 2008 15:38:27 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Message-ID: <ncKdnV4gZ8Z9khjVnZ2dnUVZ_gWdnZ2d@earthlink.com> Lines: 32 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 67.101.104.202 X-Trace: sv3-PZQifcx9rF6sXm/8HU9FLgKEjA9VyYIyaeTZb9ubvtKjpMwQ5zHKUp1/jN25+4cgb3Jz+tcQJEzYUI5!aUbdDKQ+f1x0ucBDkcYY4KziJQdonDz+G29YLDnBdlEHBrW3txAmBEglGn5zAoBALjK/ocJJDr0K!93nFDQ5s6vick/njuhGmnUJB3T5lgCGO X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39