[Idle-dev] py2pdf printing patch for idle

Robin Becker robin@jessikat.demon.co.uk
Tue, 9 May 2000 17:09:11 +0100


BLURB
A patch to the latest CVS idle has been made that allows idle to print using Dinu Gherman's
py2pdf which in turn needs reportlab and acrobat reader. The idle file.print... menu entry
allows a simple configuration
dialog to send the current window to a script ../py2pdf/idle_print.py;
this script in turn copies the window to acrobat reader using py2pdf.

The latest version of py2pdf can be found at
        http://www.egroups.com/files/reportlab-users/dinu/

INSTALLATION
0) get acrobat reader from www.adobe.com

1) get the patch ftp://ftp.reportlab.com/idle.pat

2) Apply the patch
   cd tools/idle
   patch -p1 </tmp/idle.pat
   python idle.py # to check it works
3) get the py2pdf software (includes reportlab)
   ftp://ftp.reportlab.com/py2pdf.tgz ftp://ftp.reportlab.com/py2pdf.zip

4) extract in the tools directory
   cd tools
   tar xzf /tmp/py2pdf.tgz or unzip -a \tmp\py2pdf.zip

5) try it out!

CONFIGURATION
The file.print... menu dialog can be configured using a config.txt (or config-unix.txt) section
(ie it allows idle configging).

[Print]
size=A4  (or 'letter','legal','tabloid','ledger','executive', 'A3', 'A4', 'A5')
viewonly=0
landscape=0
colorize=0
fontsize=8
font=Courier
tabwidth=editorwindow default

Send suggestions/comments/bugs/fixes to robin@reportlab.com
-- 
Robin Becker