Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postscript for 'a4'

Status
Not open for further replies.

micha2

Technical User
Nov 21, 2002
5
DE
I want to create and save a canvas for 'a4'. The result is not so good. I think, that only the 'letter'-format is supported. How can I create an eps-file for 'a4' with tcl/tk?
 
Do the -pageheight and -pagewidth options of the postscript command can help you?

From the canvas page of the Tk manual:

-pageheight size
Specifies that the Postscript should be scaled in both x and y so that the printed area is size high on the Postscript page. Size consists of a floating-point number followed by c for centimeters, i for inches, m for millimeters, or p or nothing for printer's points (1/72 inch). Defaults to the height of the printed area on the screen. If both -pageheight and -pagewidth are specified then the scale factor from -pagewidth is used (non-uniform scaling is not implemented).

-pagewidth size
Specifies that the Postscript should be scaled in both x and y so that the printed area is size wide on the Postscript page. Size has the same form as for -pageheight. Defaults to the width of the printed area on the screen. If both -pageheight and -pagewidth are specified then the scale factor from -pagewidth is used (non-uniform scaling is not implemented).

(I never used this)

HTH

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top