如何在OS X中检测打印机缺纸?

时间:2021-04-17 20:19:52

In Mac OS X: Is there a programmatic way to detect if the selected printer is out of paper?

在Mac OS X中:是否有一种编程方式来检测所选打印机是否缺纸?

1 个解决方案

#1


Note that Mac OS X uses CUPS, and that provides a printer-agnostic API.

请注意,Mac OS X使用CUPS,并提供与打印机无关的API。

See the API documentation, particularly table 1.1 which details amongst other things error conditions

请参阅API文档,特别是表1.1,其中详细说明了错误情况

#1


Note that Mac OS X uses CUPS, and that provides a printer-agnostic API.

请注意,Mac OS X使用CUPS,并提供与打印机无关的API。

See the API documentation, particularly table 1.1 which details amongst other things error conditions

请参阅API文档,特别是表1.1,其中详细说明了错误情况