[Kde-print-devel] [Bug 112984] no progress nor pagenumber shown
Kurt Pfeifle
pfeifle at kde.org
Mon Jan 15 15:40:43 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=112984
------- Additional Comments From pfeifle kde org 2007-01-15 15:40 -------
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 </TH>
<TH>State </TH>
and
<TD>{job_k_octets}k </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 </TH>
<TH>Pages </TH>
<TH>State </TH>
and
<TD>{job_k_octets}k </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. :-)
More information about the Kde-print-devel
mailing list