Article View: adobe.postscript.programming
Article #292Re: How to get a free page size?
From: Jeffrey H. Coffield
Date: Sat, 28 Jun 2008 13:12
Date: Sat, 28 Jun 2008 13:12
61 lines
2730 bytes
2730 bytes
geointelligence@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 Coffield
www.digitalsynergyinc.com
Technical Details
Message-ID:
<DLq9k.124$cn7.19@flpi145.ffdc.sbc.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi145.ffdc.sbc.com.POSTED!cbb6f965!not-for-mailReferences:
<1a6688bc-c172-4aca-8935-386ee06e6073@f24g2000prh.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,f8c910f098e05404 X-Google-Attributes: gid10c61a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi145.ffdc.sbc.com.POSTED!cbb6f965!not-for-mail From: "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 Newsgroups: adobe.postscript.programming Subject: Re: How to get a free page size? References: <1a6688bc-c172-4aca-8935-386ee06e6073@f24g2000prh.googlegroups.com> In-Reply-To: <1a6688bc-c172-4aca-8935-386ee06e6073@f24g2000prh.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 61 Message-ID: <DLq9k.124$cn7.19@flpi145.ffdc.sbc.com> NNTP-Posting-Host: 216.103.32.162 X-Complaints-To: abuse@prodigy.net X-Trace: flpi145.ffdc.sbc.com 1214658659 ST000 216.103.32.162 (Sat, 28 Jun 2008 09:10:59 EDT) NNTP-Posting-Date: Sat, 28 Jun 2008 09:10:59 EDT Organization: at&t http://my.att.net/ X-UserInfo1: [[PAPDONVZU_BULXKBHLOFTBTR\B@GXLN@GZ_GYO^BTJUZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Date: Sat, 28 Jun 2008 06:12:05 -0700