Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access the status of the printer?

Tags:

java

printing

I need to know the Printer Status. I need to control the Printer Status using Java Program. Example

  1. Check the Printer status, weather will it accept the Job or not,
  2. Out of Paper
  3. Printer queue
  4. Toner
  5. and etc..

I know there is a way to check the basic information, such as name, color supported or not. But I can't find any example to check paper, toner, job queue. I like to know if it is possible to using Java API. I found big API for printer function, but they didn't give a simple example how to use it.

like image 264
user2255885 Avatar asked Oct 27 '25 04:10

user2255885


1 Answers

Have a look at this PrinterStateReason. And also javax.print.

like image 182
Maximin Avatar answered Oct 30 '25 10:10

Maximin