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.CreatePrinterDC (win32print.GetDefaultPrinter ())

If that is getting you what you need, then

    win32print.OpenPrinter( win32print.GetDefaultPrinter() )

will get you the handle to that printer.

--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to