🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #297

Re: How to get a free page size?

#297
From: geointelligence
Date: Tue, 01 Jul 2008 14:22
86 lines
4849 bytes
On Jul 1, 2:51 am, "Jeffrey H. Coffield"
<jeff...@digitalsynergyinc.com> wrote:
> geointellige...@yahoo.com.cn wrote:
> > On Jun 30, 7:31 am, "Jeffrey H. Coffield"
> > <jeff...@digitalsynergyinc.com> wrote:
> >> geointellige...@yahoo.com.cn wrote:
> >>> On Jun 28, 9:12 pm, "Jeffrey H. Coffield"
> >>> <jeff...@digitalsynergyinc.com> wrote:
> >>>> geointellige...@yahoo.com.cn wrote:
> >>>>> In next example the page's size is A4. I want change it to
> >>>>> 100cm*100cm. I tried many methods, but could not do it. Who can tell
> >>>>> me a right way? Please modify the example complete code.
> >>>> Most of the printers I work with will use the setpagedevice to set the
> >>>> page size, so for 100cm x 100xm (39.37in x 39.37in) ((That's a big sheet
> >>>> for a Postscript printer)).
> >>>>> %!PS-Adobe-2.0
> >>>>> %%Title: Blue Book Program 3, on page 137
> >>>>> %%Creator: Adobe Systems Incorporated
> >>>>> %%CreationDate: Thu Dec 28 13:17:45 PST 1989
> >>>>> %%EndComments
> >>>> /cm {72 mul 2.54 div} def
> >>>> <</PageSize [100 cm 100 cm]>> setpagedevice
> >>>>> /ellipsedict 8 dict def
> >>>>> ellipsedict /mtrx matrix put
> >>>>> /ellipse
> >>>>>    { ellipsedict begin
> >>>>>      /endangle exch def
> >>>>>      /startangle exch def
> >>>>>      /yrad exch def
> >>>>>      /xrad exch def
> >>>>>      /y exch def
> >>>>>      /x exch def
> >>>>>      /savematrix mtrx currentmatrix def
> >>>>>      x y translate
> >>>>>      xrad yrad scale
> >>>>>      0 0 1 startangle endangle arc
> >>>>>      savematrix setmatrix
> >>>>>      end
> >>>>>    } def
> >>>>> newpath
> >>>>>   144 400 72 144 0 360 ellipse
> >>>>> stroke
> >>>>> newpath
> >>>>>   400 400 144 36 0 360 ellipse
> >>>>> fill
> >>>>> newpath
> >>>>>   300 180 144 72 30 150 ellipse
> >>>>> stroke
> >>>>> newpath
> >>>>>   480 150 30 50 270 90 ellipse
> >>>>> fill
> >>>>> showpage
> >>>> Jeff Coffieldwww.digitalsynergyinc.com-Hidequoted text -
> >>>> - Show quoted text -
> >>> I used this method try again. But the page size did not change when I
> >>> opened it in Illustrator CS2. It was still A4.
> >> You didn't mention Illustrator. Can you create a page the size you want
> >> and see if there is a "%%" comment that Illustrator uses?
>
> >> Jeff C.- Hide quoted text -
>
> >> - Show quoted text -
>
> > The Illustrator CS2 can not create a PS file. It can create a EPS
> > file. I created a EPS file, and found all "%%" comment. But didn't
> > find the command to change the page size. And then I looked for all
> > "100", but failed too.
>
> Ok, I'm confused. The sample file is not an EPS file and EPS files do
> not normally have a page size as they are intended to be clip art pasted
> into something else that defines the page like Illustrator. What are you
> using to print these files?
>
> Jeff C.- Hide quoted text -
>
> - Show quoted text -

I must write a piece of program to create a simple PS file that
include ourselves defined graphic data. The Illustrator can not supply
this function without Illustrator SDK. But this SDK is difficult to
learn. So I learn the PS language. The PS file is opened and printed
by Illustrator, after it was created.
Technical Details
Message-ID: <93389e9d-dbd3-4975-892e-b1ab4c462f7c@i36g2000prf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!i36g2000prf.googlegroups.com!not-for-mail
References: <1a6688bc-c172-4aca-8935-386ee06e6073@f24g2000prh.googlegroups.com> <DLq9k.124$cn7.19@flpi145.ffdc.sbc.com> <83f86b78-cf2d-4136-84a3-550caf7b1325@u6g2000prc.googlegroups.com> <jXU9k.11630$N87.6330@nlpi068.nbdc.sbc.com> <f52ce87b-59e2-462a-8e9e-f15d31beb75e@a32g2000prf.googlegroups.com> <KW9ak.8550$89.5497@nlpi069.nbdc.sbc.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,f8c910f098e05404
X-Google-Attributes: gid10c61a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!i36g2000prf.googlegroups.com!not-for-mail
From: geointelligence@yahoo.com.cn
Newsgroups: adobe.postscript.programming
Subject: Re: How to get a free page size?
Date: Tue, 1 Jul 2008 07:22:28 -0700 (PDT)
Organization: http://groups.google.com
Lines: 86
Message-ID: <93389e9d-dbd3-4975-892e-b1ab4c462f7c@i36g2000prf.googlegroups.com>
References: <1a6688bc-c172-4aca-8935-386ee06e6073@f24g2000prh.googlegroups.com> 
 <DLq9k.124$cn7.19@flpi145.ffdc.sbc.com> <83f86b78-cf2d-4136-84a3-550caf7b1325@u6g2000prc.googlegroups.com>
 <jXU9k.11630$N87.6330@nlpi068.nbdc.sbc.com> <f52ce87b-59e2-462a-8e9e-f15d31beb75e@a32g2000prf.googlegroups.com>
 <KW9ak.8550$89.5497@nlpi069.nbdc.sbc.com>
NNTP-Posting-Host: 123.117.177.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1214922148 32198 127.0.0.1 (1 Jul 2008 14:22:28 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 1 Jul 2008 14:22:28 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i36g2000prf.googlegroups.com; posting-host=123.117.177.130; 
 posting-account=729pNAoAAABSTJNohJT8zx_vjN7q1Nd0
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
 CLR 2.0.50727; MAXTHON 2.0),gzip(gfe),gzip(gfe)