Dear list and all readers,

at the moment I have a problem with direct printing through win32print. I wrote a script which read in all images of a folder and resized them and priting it to a thermosub printer.
This is working well without any user interaction. Change image size and papersize on the printer.

So first thank to all the persons which made the modules that I can use for my doing!

Now the printer has special option: Made a custom finish (matte) on the images, it can be set in the advanced option please see this screenshot:

https://www.dropbox.com/s/c8jcilp2rnl8f5i/printer.png?dl=0

you can choose between glossy and matte.

If I iterate over the pDevMode I see this options in DriverData binary string, first I try to make a binary replace in DriverData without success 2 more bytes are changed.

OVERCOATTYPE OPTYPE_LUSTER

If I will overwrite the whole DriverData with the data when the printer was set to matte using the windows dialog It works, so I have saved me the content and can load it
into DriverData if needed.

But I think it is a very dirty way to do, even I doesn't know which special features will follow in the future.

I my question is how to edit the content inside DriverData over python without die AdvancedDocumentA Dialog?

Is there a way? If not has anyone expirience with printing directly with the printerdriver to the device without spooling?

Thank you all for reading,

Ben


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

Reply via email to