PSDraw module provides simple print support for Postscript
printers. You can print text, graphics and images through this module.
Sets up printing to the given file. If file is omitted,
Set up printing of a document. (Write Postscript DSC header.)
Ends printing. (Write Postscript DSC footer.)
image(box, im, dpi=None)¶
Draw a PIL image, centered in the given box.
Draws a line between the two points. Coordinates are given in Postscript point coordinates (72 points per inch, (0, 0) is the lower left corner of the page).
Draws a rectangle.
Parameters: box –
A 4-tuple of integers whose order and function is currently undocumented.
Hint: the tuple is passed into this format string:
%d %d M %d %d 0 Vr
Selects which font to use.
- font – A Postscript font name
- size – Size in points.
This has been in the PIL API for ages but was never implemented.