/usr/share/doc/python-imaging/html/psdraw.htm is in python-imaging-doc-html 1.1.2-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | <html><head><title>The PSDraw Module</title><link rel="stylesheet" type="text/css" href="effbot.css" /></head><body><div id="PSDRAW-MODULE" class="chapter"><h1 style="chapter">The PSDraw Module</h1><p>The <i>PSDraw</i> module provides print support for Postscript printers. You can print text, graphics and images through this module.</p><div class="sect1"><h2 style="sect1">Functions</h2><div class="sect2"><h3 style="sect2">PSDraw (constructor)</h3><p><tt>PSDraw(file)</tt>. Sets up printing to the given file. If file is omitted, <i>sys.stdout</i> is assumed.</p></div></div><div class="sect1"><h2 style="sect1">PSDraw Methods</h2><div class="sect2"><h3 style="sect2">begin_document</h3><p><tt>begin_document()</tt>. Sets up printing of a document.</p></div><div class="sect2"><h3 style="sect2">end_document</h3><p><tt>end_document()</tt>. Ends printing.</p></div><div class="sect2"><h3 style="sect2">line</h3><p><tt>line(from, to)</tt>. 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).</p></div><div class="sect2"><h3 style="sect2">rectangle</h3><p><tt>rectangle(box)</tt>. Draws a rectangle.</p></div><div class="sect2"><h3 style="sect2">text</h3><p><tt>text(position, text)</tt>, <tt> text(position, text, alignment)</tt>. Draws text at the given position. You must use setfont before calling this method.</p></div><div class="sect2"><h3 style="sect2">setfont</h3><p><tt>setfont(font, size)</tt>. Selects which font to use. The font argument is a Postscript font name, the size argument is given in points.</p></div><div class="sect2"><h3 style="sect2">setink</h3><p><tt>setink(ink)</tt>. Selects the pixel value to use with subsequent operations.</p></div><div class="sect2"><h3 style="sect2">setfill</h3><p><tt>setfill(onoff)</tt>. Selects if subsequent rectangle operations should draw filled rectangles or just outlines.</p></div></div></div></body></html>
|