🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #391

Re: Can we refer External EPS file location in main Postscript file?

#391
From: abdul
Date: Thu, 03 May 2007 07:23
61 lines
3375 bytes
On May 2, 6:25 pm, "Jeffrey H. Coffield"
<jeff...@digitalsynergyinc.com> wrote:
> abdul wrote:
> > Hi All,
> > I have written a utility which generates PS files from PPML file.
> > While generating main PS file I copy the eps file contents and put
> > them in main PS file. As my eps files are big in size (approx. 50 MB
> > +) the copying of eps to PS is taking lot of time. Is there any other
> > way to create main PS file without copying the eps file, means I can
> > just refer the eps file location in main PS file, and it should start
> > working. I am using ghostscript to check my PS file output.I am using
> > postscript language 2.
>
> > Thanks,
> > abdul
>
> The PS interpreter needs access to some sort of disk to store the eps
> files. This varies widely on printers. The path name is in the format
> of the OS that the interpreter runs on.
>
> Linux/Unix
>         (/home/jeffrey/pictureone.eps) run
>
> VMS
>         (CLIP_ART:pictureone.eps) run
>
> Virus compatible OS
>         (C:\\somedir\\pictureone.eps) run
>
> Note that a "\" for windows needs to be doubled up.
>
> Also an eps should be surrounded by a BeginEPSF and an EndEPSF like so:
>
> /BeginEPSF      {
>          /b4_Inc_state save def
>          /dict_count countdictstack def
>          /op_count count 1 sub def
>          userdict begin
>          /showpage {} def
>          0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin
>          10 setmiterlimit [] 0 setdash newpath
>          /languagelevel where
>          { pop languagelevel 1 ne
>                  { false setstrokeadjust false setoverprint } if
>          } if
>
> } bind def
>
> /EndEPSF        {
>          count op_count sub {pop} repeat
>          countdictstack dict_count sub {end} repeat
>          b4_Inc_state restore
>
> } bind def
>
> BeginEPSF X Y translate SX SY scale (pictureone.eps) run EndEPSF

Hi,
Thanks for your reply. Its realy very helpful info.

Thanks
Technical Details
Message-ID: <1178176986.825595.97420@n59g2000hsh.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!n59g2000hsh.googlegroups.com!not-for-mail
References: <1178105073.358823.196390@q75g2000hsh.googlegroups.com> <lj0_h.2262$RX.351@newssvr11.news.prodigy.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,a84497cfa2f3cc4c
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!n59g2000hsh.googlegroups.com!not-for-mail
From: abdul <shaikhabdulkareem@gmail.com>
Newsgroups: adobe.postscript.programming
Subject: Re: Can we refer External EPS file location in main Postscript file?
Date: 3 May 2007 00:23:06 -0700
Organization: http://groups.google.com
Lines: 62
Message-ID: <1178176986.825595.97420@n59g2000hsh.googlegroups.com>
References: <1178105073.358823.196390@q75g2000hsh.googlegroups.com>
   <lj0_h.2262$RX.351@newssvr11.news.prodigy.net>
NNTP-Posting-Host: 192.8.220.5
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1178176987 428 127.0.0.1 (3 May 2007 07:23:07 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 3 May 2007 07:23:07 +0000 (UTC)
In-Reply-To: <lj0_h.2262$RX.351@newssvr11.news.prodigy.net>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 TESTISA, 1.1 cachehcl60:8080 (squid/2.6.STABLE3)
Complaints-To: groups-abuse@google.com
Injection-Info: n59g2000hsh.googlegroups.com; posting-host=192.8.220.5;
   posting-account=gzW5eg0AAADTlVXelPaFfM4opIGXInxp