Article View: adobe.postscript.programming
Article #390Re: Can we refer External EPS file location in main Postscript file?
From: Jeffrey H. Coffield
Date: Wed, 02 May 2007 13:25
Date: Wed, 02 May 2007 13:25
52 lines
3128 bytes
3128 bytes
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
Technical Details
Message-ID:
<lj0_h.2262$RX.351@newssvr11.news.prodigy.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.net.POSTED!cbb6f965!not-for-mailReferences:
<1178105073.358823.196390@q75g2000hsh.googlegroups.com>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!news2.google.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.net.POSTED!cbb6f965!not-for-mail From: "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 Newsgroups: adobe.postscript.programming Subject: Re: Can we refer External EPS file location in main Postscript file? References: <1178105073.358823.196390@q75g2000hsh.googlegroups.com> In-Reply-To: <1178105073.358823.196390@q75g2000hsh.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 55 Message-ID: <lj0_h.2262$RX.351@newssvr11.news.prodigy.net> NNTP-Posting-Host: 216.103.32.162 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr11.news.prodigy.net 1178112337 ST000 216.103.32.162 (Wed, 02 May 2007 09:25:37 EDT) NNTP-Posting-Date: Wed, 02 May 2007 09:25:37 EDT Organization: SBC http://yahoo.sbc.com X-UserInfo1: [[PA@SJEZRW_RR\YBBJDM^P@VZ\LPCXLLBWLOOAFBATBTSUBYFWEAE[YJLYPIWKHTFCMZKVMB^[Z^DOBRVVMOSPFHNSYXVDIE@X\BUC@GTSX@DL^GKFFHQCCE\G[JJBMYDYIJCZM@AY]GNGPJD]YNNW\GSX^GSCKHA[]@CCB\[@LATPD\L@J\\PF]VR[QPJN Date: Wed, 02 May 2007 13:25:37 GMT