Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Windows - Java - Printer - PDF - Status Issue.  RSS feed

Pankaj .Patel
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Objective: To design a program which prints almost 18k PDF Files, in a one shot using java program in background with all the possible status of Print.
: It's good, if program can select tray if the one in use is gone empty.
: Program should store status of give Print -> Successful, Queued, Tray is empty, any kind of logical message.
: If possible, implement in Java Only, no other technology, open-free program, no licenced program.

I have written/assemebled one program with the help of other sites. Using this i can print PDF file, but i am not getting proper/exact status.
Issue in the below Program:
1) When i executed program, in a milliseconds i received system log, that it's completed. After few seconds, printing get started. So basically my intention is, only after the print get completed, i should have ack that now it's successful. As per java, i had implemented PrintJobListener.. However printJobCompleted() is not being called.
2) I pull out all the blank paper from the printer and then given print, then also i received successful print status. Once i see, status on printer screen it was queued up. In this perticular, expectation from the program is to return queued status.

If anybody has faced and solved such issue, please share your knowledge.


printDataTransferCompleted. -> 106
printJobNoMoreEvents. -> 105
attrName: queued-job-count
attrValue: 0
attrName: printer-is-accepting-jobs
attrValue: accepting-jobs
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!