Article View: adobe.postscript.programming
Article #1091newbie in (E)PS - need a sample and impuls
From: Vahan Babakhanian
Date: Thu, 24 Jul 2003 01:03
Date: Thu, 24 Jul 2003 01:03
40 lines
2163 bytes
2163 bytes
have to try to imitate and generate image files online (just a simple background, 1-2 images and few lines of text). I can easily do that in jpg format. the task is to get EPS.
question 1 - Code
this code from PS 800 pp. manual, Appendix H - does not work use ASP script, generate file and write it to the disk with eps extension, later trying to preview it
s1="%!PS-Adobe-3.0 EPSF-3.0"
s5="%%BoundingBox: 5 5 105 105"
s10="20 setlinewidth"
s11="40 60 moveto"
s12="0 90 rlineto 90 0 rlineto 0 -90 rlineto closepath"
s13="stroke"
ss = s1 &s5 &s10 &s11 &s12 &s13
Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
eps0="eps_h1.eps"
eps1="c:\inetpub\wwwroot\test\" &eps0
Set f1 = fso.CreateTextFile(eps1, True)
f1.WriteLine(ss)
f1.Close
response.write(eps0 &"
")
I tried also to put at the end of each line "0A" - no result.
image i was trying to preview by Adobe Illustrator and also by GSview 4.1
question 2 - Viewer
is there any way to see eps image right in the browser (like we can preview jpg files)?
Photoshop opens this file from above code as an empty file. when trying to open it asks properties (RGB, grayscale, size, resolution, etc.) why?
is there any free EPS viewer? (i download few with EPS mentioned among available formats, but they do not work)
thanks for advices
Technical Details
Message-ID:
<1dea0b2d.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,5cd92ae4dd009504,start X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2003-07-23 18:08:03 PST From: "Vahan Babakhanian" <b_vah@hotmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: newbie in (E)PS - need a sample and impuls Message-ID: <1dea0b2d.-1@WebX.la2eafNXanI> Date: Wed, 23 Jul 2003 18:03:27 -0700 Lines: 47 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit