Hi,

I want to print the contents of a Canvas widget by feeding the output of
the postscript() command to lpr (I am working with linux here).

I would like that Canvas "screenshot" to be centered on the printed page
(in my case these are A4 pages which are standard here).
Unfortunately I do not seem to be able to do this. After a number of
unsuccessful tries to fiddle with lpr I finally found that the problem
appears to be that the generated postscript file always seems to be
designed for pages in U.S. letter format, obviously this part in the
postscript:

%%Page: 1 1
save
306.0 396.0 translate

is responsible for that; I tried and manually changed the coords that (as
it seems) are passed to the "translate" command and the position of the
Canvas rectangle (which might be for example 12x12 cm or so) on the page
changes.

So, is there any way to tell the postscript() command to use a page size
other than U.S. letter for its output that I missed, or alternatively,
does anyone know about a 3rd party tool available for linux that could be
used to "convert" the postscript() output from letter to A4 format?

Thanks in advance

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

        "Get back to your stations!"
        "We're beaming down to the planet, sir."
                -- Kirk and Mr. Leslie, "This Side of Paradise",
                   stardate 3417.3
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to