[Samba] Page_log with number of pages prtinted wrong

Michel Mera michel.mera at magnetimarelli.com.br
Wed Mar 10 08:22:43 GMT 2004


The Adobe drivers (on request of the printer PPD associated with them) often put a
PJL header in front of the main PostScript part of the print file. Thus, the printfile
starts with <1B >%-12345X or <escape>%-12345X instead of %!PS). This leads to
the CUPS daemon auto-typing the incoming file as a print-ready file, not initiating
a pass through the pstops filter (to speak more technically, it is not regarded as
the generic MIME-type application/postscript, but as the more special MIME type
application/cups.vnd-postscript), which therefore also leads to the page accounting in
/var/log/cups/page log not receiving the exact number of pages; instead the dummy
page number of ‘1’ is logged in a standard setup).

-------------- next part --------------
D [09/Mar/2004:16:54:35 -0300] print_job: auto-typing file...
D [09/Mar/2004:16:54:35 -0300] print_job: request file type is application/vnd.c
ups-postscript.
D [09/Mar/2004:16:54:35 -0300] check_quotas: requesting-user-name = 'RNANI'
D [09/Mar/2004:16:54:35 -0300] print_job: requesting-user-name = 'RNANI'
D [09/Mar/2004:16:54:35 -0300] Adding default job-sheets values "none,none"...
I [09/Mar/2004:16:54:35 -0300] Job 42 queued on 'lj5si' by 'RNANI'.
D [09/Mar/2004:16:54:35 -0300] Job 42 hold_until = 0
D [09/Mar/2004:16:54:35 -0300] StartJob(42, 0808d350)
D [09/Mar/2004:16:54:35 -0300] StartJob() id = 42, file = 0/1
D [09/Mar/2004:16:54:35 -0300] job-sheets=none,none
D [09/Mar/2004:16:54:35 -0300] banner_page = 0
D [09/Mar/2004:16:54:35 -0300] StartJob: argv = "lj5si","42","RNANI","Microsoft
Word - comp.doc","1","","/var/spool/cups/d00042-001"
D [09/Mar/2004:16:54:35 -0300] StartJob: envp = "PATH=/usr/lib/cups/filter:/bin:
/usr/bin","SOFTWARE=CUPS/1.1","USER=root","CHARSET=iso-8859-1","LANG=pt-br","TZ=
GMT","PPD=/etc/cups/ppd/lj5si.ppd","CUPS_SERVERROOT=/etc/cups","RIP_MAX_CACHE=8m
","TMPDIR=/var/spool/cups/tmp","CONTENT_TYPE=application/vnd.cups-postscript","D
EVICE_URI=socket://139.128.104.100:9100/","PRINTER=lj5si","CUPS_DATADIR=/usr/sha
re/cups","CUPS_FONTPATH=/usr/share/cups/fonts","",""
D [09/Mar/2004:16:54:35 -0300] StartJob: statusfds = 5, 6
D [09/Mar/2004:16:54:35 -0300] StartJob: filterfds[1] = 9, -1
D [09/Mar/2004:16:54:35 -0300] StartJob: backend = "/usr/lib/cups/backend/socket
"
D [09/Mar/2004:16:54:35 -0300] StartJob: filterfds[0] = -1, 10
D [09/Mar/2004:16:54:35 -0300] start_process("/usr/lib/cups/backend/socket", bff
f164c, bffecafc, 9, 10, 6)
I [09/Mar/2004:16:54:35 -0300] Started backend /usr/lib/cups/backend/socket (PID
 3242) for job 42.
D [09/Mar/2004:16:54:35 -0300] CloseClient() 3
D [09/Mar/2004:16:54:37 -0300] mallinfo: arena = 1458944, used = 1427120, free =
 31824
D [09/Mar/2004:16:54:37 -0300] UpdateJob: job 42, file 0 is complete.
D [09/Mar/2004:16:54:37 -0300] CancelJob: id = 42
D [09/Mar/2004:16:54:37 -0300] StopJob: id = 42, force = 0
D [09/Mar/2004:16:54:37 -0300] StopJob: printer state is 3



More information about the samba mailing list