Print Queue displays

Benjamin Kuit bj at
Mon Apr 5 15:17:57 GMT 1999

Here's a very low priority request.

Currently samba doesn't support displaying the number of pages to
be printed when showing the print queue.

I was going to try and do this myself, and added a field (int pages)
to the print_queue_struct structure ( include/smb.h ), and writing a
custom print queue parser ( selected by 'printing = custom' in
smb.conf ), but I dont know how to add the extra information to the
returning packet ( somewhere in smbd/ipc.c:fill_printjob_info ? ).

Just thought it would be relativily easy to do, since most NT print
drivers convert their print jobs to postscript, its easy to work out
the number of pages to be printed, by counting the number of times
'showpage' is called in the postscript document.


|      Benjamin (Bj) Kuit       |  Faculty of Mathematical             |
|      Systems Programmer       |          and Computing Sciences.     |
|      Phone: 02 9514 1841      |  University of Technology, Sydney    |
|      Mobile: 0412 182 972     |  bj at                   |

More information about the samba-technical mailing list