Not. pages before printing in cups

What I've done: -

  • I am using cups4j api and I am getting the attributes of a print job (Job ID, Job Name, Page Size, Job ID, Creation Date and Completion Date) of a print job that is sent to the printer.

What I want: -

  • total amount. pages sent for printing. In the meantime, there is no need to know about it. ”

Problem:

  • I get total no. pages only after the job is completed.
  • I want to get the total number. pages before printing is complete, as soon as the print job is sent.
+3


source to share


1 answer


I found the answer to this question. There are various states of the printing process. We receive summary pages only when the work reaches the processing state. - paused, processed, processed, terminated, canceled, canceled, completed. we can get jobs when they are in the processing stage using the cups4j api. After that, we can use its attributes and also hold or move the work according to our requirement. what we can do is make changes to the cups api, like adding a list of work states, how to process, and create our own jar and use it in our project.



0


source







All Articles