🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #375

Re: Postscript Images

#375
From: Jeffrey H. Coffield
Date: Wed, 31 Jan 2007 01:00
44 lines
2699 bytes
clcprk@yahoo.com wrote:
> On Jan 28, 10:16 am, "Jeffrey H. Coffield" 
> <jeff...@digitalsynergyinc.com> wrote:
>> clc...@yahoo.com wrote:
>>> how do you convert an postscript image into pixels.  Thanks in advance
>> I assume you mean convert ps to jpg, gif, png, etc. Try Ghostscript.
>>
>> Jeff Coffield
> 
> My question is: I have an .eps file and it is 1000 lines long.  it is 
> created by Adobe and also i included the .eps file.  My question is I 
> will be using this .eps file number of times ot create the letters.  
> Can someone tell me how to call it as a function and call that 
> function number of time by not creating the same code each time i use 
> so that i can lessen the cpu time.  Thanks in advance
> 

/MyProc {
  %!PS-Adobe-3.0
  %%Creator: (ImageMagick)
  %%Title: (Eliot.ps)
  %%CreationDate: (Fri Jan 26 13:10:09 2007)

  %%BoundingBox: 0 0 552 147
.
.
.
  showpage
} def

/MyForm
<</FormType 1
   /BBox [0 0 552 147] % Bounding box from eps file
   /Matrix matrix
   /PaintProc {pop MyProc}
 >> def

Then when you want to use it:

MyForm execform

This will RIP the eps only once if the printer can cache forms.

Jeff Coffield
Technical Details
Message-ID: <qSRvh.39885$Gr2.30115@newssvr21.news.prodigy.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.net.POSTED!cbb6f965!not-for-mail
References: <1169689949.025327.100550@q2g2000cwa.googlegroups.com> <X63vh.38289$Gr2.22937@newssvr21.news.prodigy.net> <1170198878.960057.126560@p10g2000cwp.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,7f069300b33ab497
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.net.POSTED!cbb6f965!not-for-mail
From: "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com>
User-Agent: Thunderbird 1.5.0.9 (X11/20061206)
MIME-Version: 1.0
Newsgroups: adobe.postscript.programming
Subject: Re: Postscript Images
References: <1169689949.025327.100550@q2g2000cwa.googlegroups.com>   <X63vh.38289$Gr2.22937@newssvr21.news.prodigy.net> <1170198878.960057.126560@p10g2000cwp.googlegroups.com>
In-Reply-To: <1170198878.960057.126560@p10g2000cwp.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 44
Message-ID: <qSRvh.39885$Gr2.30115@newssvr21.news.prodigy.net>
NNTP-Posting-Host: 216.103.32.162
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr21.news.prodigy.net 1170205206 ST000 216.103.32.162 (Tue, 30 Jan 2007 20:00:06 EST)
NNTP-Posting-Date: Tue, 30 Jan 2007 20:00:06 EST
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: T[OURY_ESJTYBPXYNCOF_W\@PJ_^PBQLGPQRZUEK@YUDUWYAKVUOPCW[ML\JXUCKVFDYZKBMSFX^OMSAFNTINTDDMVW[X\THOPXZRVOCJTUTPC\_JSBVX\KAOTBAJBVMZTYAKMNLDI_MFDSSOLXINH__FS^\WQGHGI^C@E[A_CF\AQLDQ\BTMPLDFNVUQ_VM
Date: Wed, 31 Jan 2007 01:00:06 GMT