[Python-apps-team] Bug#723758: pkpgcounter failes to read PJL-wrapped Zenographics ZjStream
apastor
alfonso.pastor at gmail.com
Thu Sep 19 15:54:50 UTC 2013
Package: pkpgcounter
Version: 3.50-7
Severity: normal
Tags: patch
I have a HP Laserjet Professional P1102 printer with the foomatic/foo2zjs-z2
driver. I want to use tea4cups and pkpgcounter to count the number of pages
printed, but pkpgcounter fails and returns a bad number of pages.
The reason for failure is the PJL code embedded in the beginning of the prn
file send to pkpgcounter.
The header of the file is:
ESC%-12345X at PJL JOB
@PJL SET JAMRECOVERY=OFF
@PJL SET DENSITY=3
@PJL SET ECONOMODE=OFF
@PJL SET RET=MEDIUM
@PJL INFO STATUS
@PJL USTATUS DEVICE = ON
@PJL USTATUS JOB = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 30
@PJL SET JOBATTR="JobAttr4=20130917164959"^@ESC%-12345XJZJZ ........
I modified zjstream.py to correct the error by ignoring the PJL code. I propose
that this code be taken into account.
Greetings.
-- System Information:
Debian Release: 6.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-0.bpo.4-686-pae (SMP w/2 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pkpgcounter depends on:
ii ghostscript 8.71~dfsg2-9 The GPL Ghostscript PostScript/PDF
ii python 2.6.6-3+squeeze7 interactive high-level object-orie
ii python-imaging 1.1.7-2 Python Imaging Library
ii python-support 1.0.10 automated rebuilding support for P
Versions of packages pkpgcounter recommends:
ii imagemagick 8:6.6.0.4-3+squeeze2 image manipulation programs
ii python-psyco 1.6-2 Python specializing compiler
ii texlive-latex-base 2009-11+squeeze1 TeX Live: Basic LaTeX packages
ii xauth 1:1.0.4-1 X authentication utility
ii xvfb 2:1.7.7-14 Virtual Framebuffer 'fake' X serve
Versions of packages pkpgcounter suggests:
pn abiword <none> (no description available)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Añadir_espacio_automount.pdf
Type: application/pdf
Size: 52486 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130919/e3219af9/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 248.prn
Type: application/octet-stream
Size: 85323 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130919/e3219af9/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zjstream.py
Type: text/x-pascal
Size: 4529 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20130919/e3219af9/attachment-0001.p>
More information about the Python-apps-team
mailing list