Mac Printing: cannot programmatically set printQuality, mediaType, paperSource, outputBin

I have a Mac application that supports programmatically setting field values ​​for the Print dialog box. However, I could not find the API on the Mac (Cocoa / Carbon) to set the values ​​for:

  • printQuality (best / normal / low / draft),
  • MEDIATYPE (Standard / Glossy / Transparent),
  • paperSource or PaperFeed (Auto / Manual / Cash / Env) and
  • outputBin (Auto / BIN1 / BIN2).

Although I find the constants for these fields as:

PMQuality, PMPaperType, PMPaperSource, PMPSTraySwitch

I am unable to use them to set values ​​on the printer. I could not find which object / dictionary / array could contain these keys in order to be efficient.
Can anybody help me?

+3

Source: https://habr.com/ru/post/1731404/


All Articles