Saturday, 21. October 2006 9:19.pds2pdf.py now renders box characters correctly. Thanks to Reportlab 2.0. It also needs a TrueType Courier font (files cour*.ttf) and thus won't probably work on Linux.
Here is the now obsolete description of the problem which is now solved:
The box characters of codepage 437 or 850 are not correctly rendered. They should look...┌─────────────┐ │...like this │ └─────────────┘
But currently they are replaced by +, - and | and look...+-------------+ |...like this | +-------------+
These box characters which are often used by DOS applications exist in Unicode, but I don't know how much work it is to convert them correctly to PDF.
Tested on the files in tests/testdata/textprinter. Todo:
- 5.prn shows that there is still a problem with the line spacing (the vertical lines don't join exactly because leading is set using experimental values)
- problem with the size of the inserted picture which is rendered too big (it should be exactly 10 characters wide).
- The Windows version of Courier looks less dark than the «real» Acrobat Courier. Will this still be lisible if printed out and sent as a fax?
- Make it running on Linux.
- timtools 0.6.25 released (Releases 26.10.06) — timtools-0.6.25-py2exe.zip with prn2pdf renders box characters.
- Re: sizes of fonts and images (24.10.06) — Andy Robinson answered my post to the Reportlab mailing list: more
- about line spacing (23.10.06) — I'm trying to figure out how to get line spacing problem fixed (see prn2pdf renders box characters (21.10.06)). more
- sizes of fonts and images (Problem reports 23.10.06) — Another problem reported in prn2pdf renders box characters (21.10.06) was the fact that prn2pdf doesn't correctly size the image in 5.prn. more