Type: Class
Refering articles:
- prnprint and prn2pdf now produce similar output (feature 06.02.07) — The problem in Win32TextPrinter.insertImage() inserts at wrong position (19.01.07) was not only the actual image insertion, but also that a same source file produced quite different results with Win32TextPrinter compared to PdfTextPrinter. Now it is getting better. more
- prnprint used an unexpected font (Problem reports 15.10.06) — prnprint produced unexpected result on a machine that had another monotype font besides "Courier New" installed. I changed Win32TextPrinter to request "Courier New" as font face name. And I added a new command-line parameter --fontName in case somebody wants to use another font than Courier New. more
- Font height/width ratio with Win32TextPrinter (Fixed bugs 22.09.06) — Win32TextPrinter.setCpi() rendered the characters a little bit bigger than they should. more
- TextPrinters now use Session.debug() (11.08.06) — prnprint.py now displays debugging info if called with -vv. I am going to use this to explore the mysterious HP LaserJet 1200 phenomen. more
- win32ui: CDC::TextOut failed - The parameter is incorrect. (Problem reports 10.08.06) — Mysterious: Win32TextPrinter fails to print on a HP LaserJet 1200 with a message «win32ui: CDC::TextOut failed - The parameter is incorrect.» more
- Setting devmode.Orientation when creating the DC (09.08.06) — After reading Chris' article (newcenturycomputers.net/projects/pythonicwindowsprinting.html), I decided to try whether this method is a solution for my problem Landscape printing with Win32TextPrinter without requiring SetWorldTransform(). more
- Win32TextPrinter no longer calls OpenPrinter() (code changes 25.05.06) — I cancelled the changes described in (23.05.06) because they had no effect. The problem remains: Win32TextPrinter's output on a Lexmark Optra T612 printer is shifted right by about 1/6 inch, and I don't understand why.
- Win32TextPrinter now calls win32print.OpenPrinter() (code changes 23.05.06) — Win32TextPrinter now calls win32print.OpenPrinter() before calling win32ui.CreateDC(). And of course win32print.ClosePrinter() after calling dc.EndDoc().
- Solved flaws of the test suite (23.01.06) — Solved two long-standing flaws of the test suite. more
- new option useWorldTransform for prnprint (16.12.05) — prnprint users who want to print in landscape and whose printer doesn't have the «Hebrew transformation» problem can now specify this via a command-line parameter -u or --useWorldTransform. Until now they had to use version 0.6.10 which is getting old. more
- «Hebrew transformation» bug (20.09.05) — prnprint.py prints funny results on a Brother MFC printer. After recovering from your first impression that some hebrew spammer took control over your printer, you notice that in fact each letter is on the right place and mirrored against its horizontal axe. Funnily enough, on my Samsung ML-1200 and on a Lexmark Optra PS (visualized using Ghostscript) the same code prints correct results. more
- Win32TextPrinter and font width/height ratio (02.06.05) — Win32TextPrinter now sets a constant width/height ratio of 1.7 for the font. more
- DeprecationWarning during prnprint (20.05.05) — prnprint.py sometimes made the following DeprecationWarning: more
- prnprint and images (code changes 28.04.05) — prnprint.py: Images were overwritten by subsequent text, but problem is that spaces are not transparent... more
- trying to print in landscape (feature 28.04.05) — (Obsoleted by
Printing in landscape using SetWorldTransform())
Win32TextPrinter still does not support landscape printing. Some research work. more - Printing in landscape using SetWorldTransform() (28.04.05) — Here is how Win32TextPrinter implements landscape printing using SetWorldTransform(). (Note that this doesn't work on some printers, see «Hebrew transformation» bug (20.09.05)) more