This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Windows - Java - Printer - PDF - Status Issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Windows - Java - Printer - PDF - Status Issue." Watch "Windows - Java - Printer - PDF - Status Issue." New topic

Windows - Java - Printer - PDF - Status Issue.

Pankaj .Patel

Joined: Sep 21, 2010
Posts: 2
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
I agree. Here's the link:
subject: Windows - Java - Printer - PDF - Status Issue.
It's not a secret anymore!