[python-win32] How to obtain printer HANDLE as int in Python

paolo bonatti paolo_bonatti at yahoo.com
Mon Dec 10 15:00:17 EST 2018


Hi all
I'm trying to print PDF documents with pdfix sdk utilizing win32print. This PDF library requires printer HANDLE value as int directly not as a PyObject. 
Is there any way to obtain printer HANDLE value in Python code?(attached is a sample)
Thanks
Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181210/a2b4b384/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PrintPage copy.py
Type: text/x-python-script
Size: 2226 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20181210/a2b4b384/attachment.bin>


More information about the python-win32 mailing list