Re: [python-win32] Windows printing with the use of Device Context

2022-11-07 Thread Tim Roberts
On 11/7/22 5:25 PM, Neil Kenig wrote: You may want to try https://pypi.org/project/PyMuPDF/. It's relatively easy to create a blank PDF and then insert text of a given font and size at precise locations on the page. PDF files use points (1/72nd of an inch) for both font sizes and location

Re: [python-win32] Windows printing with the use of Device Context

2022-11-07 Thread Neil Kenig
You may want to try https://pypi.org/project/PyMuPDF/. It's relatively easy to create a blank PDF and then insert text of a given font and size at precise locations on the page. PDF files use points (1/72nd of an inch) for both font sizes and location on a page and will print properly regardl

Re: [python-win32] Windows printing with the use of Device Context

2022-11-07 Thread Tim Roberts
Antoine FINET wrote: I would like to print information at the correct coordinates on a pre printed form. If I understood correctly my readings, the coordinates given to a "TextOut" Printer Device Context depend on the resolution of the printer. Am I right? Yes, but the exact same thing is

[python-win32] Windows printing with the use of Device Context

2022-11-07 Thread Antoine FINET
Hello, I would like to print information at the correct coordinates on a pre printed form. If I understood correctly my readings, the coordinates given to a "TextOut" Printer Device Context depend on the resolution of the printer. Am I right? If it depends on resolution, how can I query the print

Re: [python-win32] [EXT] [ANN] pywin32 build 305 released

2022-11-07 Thread Scorby, Gary via python-win32
The error I reported in 304 still exists in the interactive window for Python 3.11. Is this scheduled to be fixed? Create the function below. Goes bad when you try to call the function. >>> def biff(x): ... x = x + 1 ... >>> biffFailed to format the args Traceback (most recent call last):