To get a
copy of the Canvas as PostScript, use the
postscriptmethod. It will
either return the PostScript output or, if the
-file option is specified, put it in a file:
$postscript = $canvas->postscript( ); $canvas->postscript(-file => "ps.out");
The following options allow you to control the output of the PostScript:
-colormap => \
Specifies that each element in
@array must be a valid PostScript command
for setting color values (e.g.,
"1.0 1.0 0.0
-colormode => "color" | "gray" | "mono"
the PostScript in full color, grayscale (
or black and white (
Specifies the file in which to put the PostScript output.
@array is a two-element array that
contains a font name and a point size. The font name should be a
complete font name so Tk will parse it correctly (e.g.,
Sets the height of the area to print. The default height is the Canvas height.
-pageanchor => "n" | "e" | "s" | "w" | "
Indicates where the page should be placed over the positioning point
specified by the
height of the printed page. The Canvas image will be scaled to fit.
height is any valid screen distance.
Sets the width of the printed page. The Canvas image will be scaled to fit.
Sets the coordinate for the x positioning ...