1

How can I get the file names in the print queue from Java? I would like to get all items in the print queue, even those not started through the PrintJob API.

I know that I can use the PrintService#getAttributes method to get all Attributes and then check the "queued-job-count" attribute for how many items are in the print queue as seen in this question. Is it possible to get the names of the files in the queue?

Adrian Jandl
  • 2,985
  • 4
  • 23
  • 30

1 Answers1

0

Please try to filter attributes by JobName class (package javax.print.attribute.standard).

Procrastinator
  • 2,526
  • 30
  • 27
  • 36
Jake N
  • 59
  • 4