Bug 112984 - no progress nor pagenumber shown
Summary: no progress nor pagenumber shown
Status: CLOSED UNMAINTAINED
Alias: None
Product: kdeprint
Classification: Applications
Component: kjobviewer (show other bugs)
Version: 0.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
: 112985 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-21 09:21 UTC by arne anka
Modified: 2009-01-02 00:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka 2005-09-21 09:21:50 UTC
Version:           0.1 (using KDE 3.4.2, Debian Package 4:3.4.2-4 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.13

i print a pdf from kpdf but kjobviewer does not show a pagenumber (26 pages) nor kind of progress ("2 of 26 printed" or "XX% printed"). to know how much is printed i have every time to leave the room and go upstairs -- but can't neither progress nor estimated end determine from kjobviewer.
Comment 1 Michael Goffioul 2005-09-21 09:53:01 UTC
*** Bug 112985 has been marked as a duplicate of this bug. ***
Comment 2 Cristian Tibirna 2005-09-22 07:45:48 UTC
I will turn this into a wish (no bug, printing proceeds correctly even if progress isn't shown). I need time to see in what measure feedback (if any) from underlying printing systems can be turned in progress information.
Comment 3 arne anka 2005-09-22 08:52:14 UTC
> I will turn this into a wish

well, it's up to you. but i think if a field does not show the information it is supposed to, it's rather a bug than a wishlist item.
Comment 4 Michael Goffioul 2005-09-22 09:55:13 UTC
Which print system are you using?

kdeprint relies on the information coming from the server. The pages in progress is only supported under CUPS. So either the information from CUPS is just plain wrong (and kdeprint cannot do anything about it), either the information is correct but kdeprint interprets it wrongly.

It would help to:
1) give your CUPS version, if you use it
2) in case of CUPS, in kjobviewer, select the running print job, right-click and
select "IPP report" and report the content here (1)

Michael.

(1) for Cristian: the page progress is based on the IPP attributes job-media-sheets and job-media-sheets-completed, the complete IPP report should ar least tell you if those attributes are meaningful.
Comment 5 arne anka 2005-09-22 11:08:21 UTC
cups version 1.1.23-12 of debian/unstable.
ippreport:

Attribute
Values
job-id
15
job-more-info
http://komhem:631/jobs/15
job-uri
http://komhem:631/jobs/15
job-printer-up-time
Thu Sep 22 11:04:21 2005
printer-uri
ipp://localhost:631/printers/oki
job-originating-user-name
arne
job-name
KDE Print System
document-format
application/postscript
copies
1
number-up
2
orientation-requested
0x3
job-priority
50
job-originating-host-name
localhost
job-id
15
job-state
0x5
job-media-sheets-completed
0
job-printer-uri
http://komhem:631/printers/oki
job-name
KDE Print System
job-k-octets
954
time-at-creation
Thu Sep 22 11:04:16 2005
time-at-processing
Thu Sep 22 11:04:16 2005
time-at-completed

job-hold-until
no-hold
job-sheets
none
none
job-state-reasons
job-printing

 does "job-sheets: none none" mean that no info regarding the number of printed and absolute pages is emitted? 
Comment 6 Michael Goffioul 2005-09-22 11:29:04 UTC
"job-sheets" is about front and back pages added to the print job. However, as you can see, the CUPS server does not report the total number of pages and report the number of processed pages as 0. From the kdeprint point of view, the job viewer is *right*, in the sense that it cannot do more than the CUPS server itself.

I think that this kind of bi-di communication and feedback will improve with CUPS-1.2 series.

Michael.
Comment 7 arne anka 2005-09-22 11:51:53 UTC
do you know any cups installation providing these informations? iow is it a misconfiguration of my cups or is it a commonly experienced issue (but if so, what about "The pages in progress is only supported under CUPS")?
Comment 8 Michael Goffioul 2005-09-22 12:12:29 UTC
Normally, this is expected to work. Is it specific to kpdf or does it also happen with other KDE apps? In the job viewer, can you see the number of pages on completed jobs, or is it also 0?

By "only supported under CUPS", I mean that theoretically CUPS provides a way to get the number of printed pages, while this is not true for other print systems (that are less supported by kdeprint, like LPRng).

Michael.
Comment 9 arne anka 2005-09-22 12:40:14 UTC
i can't rememeber i've ever seen any kind progress-information, it happens with all KDE apps (as far as i can say, did never use _all_ available KDE apps ;-). even after finishing the number is 0.
which way does cups provide? do you mean this "page_log" file, cups should create (according to a novell-suse-tutorial those informations are included in the page_log), but it's not created here. added the option to my cupsd.conf and have to wait for the next printjob ...
Comment 10 Michael Goffioul 2005-09-22 13:19:25 UTC
CUPS stores job attributes in special files located in /var/spool/cups/ directory on server side. The page_log file is another place, but this is not the primary place where pages are stored, moreover I don't think that CUPS access the log files for reading, only for logging.

What puzzles me is the fact that even completed jobs gets 0 pages (what about the job size?). And in the web interface http://localhost:631, is the number of pages of completed jobs also 0?

Michael.
Comment 11 Cristian Tibirna 2005-09-22 13:41:14 UTC
Turn "Toggle Completed Jobs" option on in kjobviewer. Do you see the number of  pages on completed jobs there?

My turning this into a wish was based on a probably wrong understanding of the initial report. 

I can't definitely confirm that total number of pages isn't shown, as it _is_ shown on all my printers, as soon as the job goes to the printer (granted, I didn't try with huge jobs of multiple pages, which would take long times for cups to send to the printer).
Comment 12 arne anka 2005-09-22 13:43:50 UTC
the webinterface does not know about pages, only sizes.
and the sizes in both the webinterface and kjobviewer seem reasonable (e g 477k for a 6 page pdf).
even completed jobs show 0 as page number.
Comment 13 Kurt Pfeifle 2007-01-15 15:40:42 UTC
WORKSFORME as designed. (Even with CUPS 1.1.23 on SUSE).

*Before* a job is completed, kjoviewer (and the CUPS web interface) display "0" as number of pages. (The number only gets counted while actually printing.)

*After* the job is completed, kjobviere (and the CUPS web interface) display the number of pages printed. (I am currently not sure about the behavior *while* the job is printed).

*Some* jobs are impossible to count the number of pages for, because their PostScript is not DSC compliant (missing "%%Page:" comments), and cups just sends the file to the printer and logs "1" as the page count.

To get the page count into your CUPS web interface, hack a little bit the HTML template. Go to "/usr/share/cups/templates/jobs.tmpl" (or "/usr/share/cups/templates/[your_language_shortname]/jobs.tmpl"). Find these lines:

  <TH>Size&nbsp;</TH>
  <TH>State&nbsp;</TH>

and

  <TD>{job_k_octets}k&nbsp;</TD>
  <TD>{job_state=3?pending since<BR>{time_at_creation}:{job_state=4?held since<BR>{time_at_creation}:

and insert a new line between each of these, so that it looks like:

  <TH>Size&nbsp;</TH>
  <TH>Pages&nbsp;</TH>
  <TH>State&nbsp;</TH>

and

  <TD>{job_k_octets}k&nbsp;</TD>
  <TD>{job_media_sheets_completed=0?Unknown:{?job_media_sheets_completed}}</TD>
  <TD>{job_state=3?pending since<BR>{time_at_creation}:{job_state=4?held since<BR>{time_at_creation}:

Reload your http://localhost:631/jobs?which_jobs=completed browser window.

Voila! Look Ma!, it now shows a column with the number of pages for each job.  :-)
Comment 14 John Layt 2009-01-02 00:04:50 UTC
KDEPrint in KDE3 is unmaintained and will have no more new features
implemented.  This request will never be implemented in KDEPrint as a result.  

In KDE4 kjobviewer has been replaced by printer-applet which uses
system-config-printer as a backend.  There is no progress reporting in printer-applet, a separate feature request will be raised for this.

Closing.