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

2018-12-10 Thread Tim Roberts
paolo bonatti via python-win32 wrote: 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) hDC.Create

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

2018-12-10 Thread paolo bonatti via python-win32
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 Paoloimport os import win32print, win32ui #