Thread View: adobe.postscript.programming
8 messages
8 total messages
Started by geointelligence
Sat, 28 Jun 2008 05:18
How to get a free page size?
Author: geointelligence
Date: Sat, 28 Jun 2008 05:18
Date: Sat, 28 Jun 2008 05:18
46 lines
2085 bytes
2085 bytes
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.
%!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
/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
Re: How to get a free page size?
Author: 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
Re: How to get a free page size?
Author: geointelligence
Date: Sun, 29 Jun 2008 02:50
Date: Sun, 29 Jun 2008 02:50
68 lines
3134 bytes
3134 bytes
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- Hide quoted 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.
Re: How to get a free page size?
Author: Jeffrey H. Coffield
Date: Sun, 29 Jun 2008 23:31
Date: Sun, 29 Jun 2008 23:31
67 lines
3392 bytes
3392 bytes
geointelligence@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- Hide quoted 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.
Re: How to get a free page size?
Author: geointelligence
Date: Mon, 30 Jun 2008 15:02
Date: Mon, 30 Jun 2008 15:02
70 lines
3846 bytes
3846 bytes
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-Hide quoted 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.
Re: How to get a free page size?
Author: Jeffrey H. Coffield
Date: Mon, 30 Jun 2008 18:51
Date: Mon, 30 Jun 2008 18:51
74 lines
4288 bytes
4288 bytes
geointelligence@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-Hide quoted 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.
Re: How to get a free page size?
Author: geointelligence
Date: Tue, 01 Jul 2008 14:22
Date: Tue, 01 Jul 2008 14:22
86 lines
4849 bytes
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.
Re: How to get a free page size?
Author: Jeffrey H. Coffield
Date: Tue, 01 Jul 2008 16:30
Date: Tue, 01 Jul 2008 16:30
20 lines
2544 bytes
2544 bytes
>> 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. Sorry, I meant to say InDesign, not Illustrator. I don't use Illustrator. Perhaps try posting the question on comp.lang.postscript. Jeff C.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads