Discussion:
Jasmine Counter Problem
Nicolas Costes
2006-09-08 18:53:32 UTC
Permalink
---------- Message transmis ----------

Subject: Jasmine Counter Problem
From: Donny Christiaan <dchristiaan-***@public.gmane.org>

Dear Nayco,

I've just install Jasmine 0.0.2 and running ok.

The problem came on the counter ...
I tried to print text file (contain 1 pages) on two diferent printer.

First, I printed on HP Office Jet 7210 and the log
Sep 8 10:21:00 ltsp jasmine[8455]: User 'edp0donny' printed 1 pages on
printer 'EDP_HP_OfficeJet_7210'

Second, I printed on Samsung ML-1710 and the log
Sep 8 10:21:21 ltsp jasmine[8529]: User 'edp0donny' printed 251 pages
on printer 'MKT_Samsung_ML1710'

My question is, why the pages number so different?

Thanks for your help ...

--
Best Regards,
Donny Christiaan.

-------------------------------------------------------
--
Put JASmine in your Cups !

To unsubscribe : mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives : http://dir.gmane.org/gmane.comp.printing.jasmine.user
Jerome Alet
2006-09-08 19:02:22 UTC
Permalink
Post by Nicolas Costes
The problem came on the counter ...
I tried to print text file (contain 1 pages) on two diferent printer.
First, I printed on HP Office Jet 7210 and the log
Sep 8 10:21:00 ltsp jasmine[8455]: User 'edp0donny' printed 1 pages on
printer 'EDP_HP_OfficeJet_7210'
Second, I printed on Samsung ML-1710 and the log
Sep 8 10:21:21 ltsp jasmine[8529]: User 'edp0donny' printed 251 pages
on printer 'MKT_Samsung_ML1710'
My question is, why the pages number so different?
Because, if you use pkpgcounter <1.85, there's NO support for Samsung
proprietary printer language QPDL (aka SPL2).

Thanks to Aurelien Croc's work on reverse engineering the QPDL page
description language, pkpgcounter v1.85 now supports this language.

It **should** work, but was only tested on a small set of QPDL files.

Problem is the headers make it look like a PCL3/4/5 file, which is not,
and the parser incorrectly finds a lot more pages than you've got in
reality.

Upgrade to pkpgcounter v1.85 and all should work fine with these
printers.

http://www.pykota.com/software/pkpgcounter/

Please report any problem ASAP.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe : mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives : http://dir.gmane.org/gmane.comp.printing.jasmine.user
Nicolas Costes
2006-09-08 19:06:54 UTC
Permalink
Post by Jerome Alet
Because, if you use pkpgcounter <1.85, there's NO support for Samsung
proprietary printer language QPDL (aka SPL2).
[SNIP]

My god, how fast !
Hello, Jerome, and thanks.
--
Put JASmine in your Cups !

To unsubscribe : mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives : http://dir.gmane.org/gmane.comp.printing.jasmine.user
Donny Christiaan
2006-09-11 00:42:26 UTC
Permalink
Post by Jerome Alet
Post by Nicolas Costes
The problem came on the counter ...
I tried to print text file (contain 1 pages) on two diferent printer.
First, I printed on HP Office Jet 7210 and the log
Sep 8 10:21:00 ltsp jasmine[8455]: User 'edp0donny' printed 1 pages on
printer 'EDP_HP_OfficeJet_7210'
Second, I printed on Samsung ML-1710 and the log
Sep 8 10:21:21 ltsp jasmine[8529]: User 'edp0donny' printed 251 pages
on printer 'MKT_Samsung_ML1710'
My question is, why the pages number so different?
Because, if you use pkpgcounter <1.85, there's NO support for Samsung
proprietary printer language QPDL (aka SPL2).
Thanks to Aurelien Croc's work on reverse engineering the QPDL page
description language, pkpgcounter v1.85 now supports this language.
It **should** work, but was only tested on a small set of QPDL files.
Problem is the headers make it look like a PCL3/4/5 file, which is not,
and the parser incorrectly finds a lot more pages than you've got in
reality.
Upgrade to pkpgcounter v1.85 and all should work fine with these
printers.
http://www.pykota.com/software/pkpgcounter/
Please report any problem ASAP.
Hi Jerome,

Thank you very much for your info ..
I'll upgrade my pkpgcounter to v1.85 and let you know ...
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 01:13:08 UTC
Permalink
Post by Donny Christiaan
Hi Jerome,
Thank you very much for your info ..
I'll upgrade my pkpgcounter to v1.85 and let you know ...
Or you can try JASmine-0.0.3-rc1 that includes pkpgcounter 1.85 and other new
features ;-) : http://nayco3.free.fr/Jasmine/Releases/0.0.3/

@++
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 01:19:47 UTC
Permalink
Post by Jerome Alet
Post by Nicolas Costes
First, I printed on HP Office Jet 7210 and the log
Sep 8 10:21:00 ltsp jasmine[8455]: User 'edp0donny' printed 1 pages on
printer 'EDP_HP_OfficeJet_7210'
Second, I printed on Samsung ML-1710 and the log
Sep 8 10:21:21 ltsp jasmine[8529]: User 'edp0donny' printed 251 pages
on printer 'MKT_Samsung_ML1710'
My question is, why the pages number so different?
Because, if you use pkpgcounter <1.85, there's NO support for Samsung
proprietary printer language QPDL (aka SPL2).
Thanks to Aurelien Croc's work on reverse engineering the QPDL page
description language, pkpgcounter v1.85 now supports this language.
It **should** work, but was only tested on a small set of QPDL files.
Problem is the headers make it look like a PCL3/4/5 file, which is not,
and the parser incorrectly finds a lot more pages than you've got in
reality.
Upgrade to pkpgcounter v1.85 and all should work fine with these
printers.
http://www.pykota.com/software/pkpgcounter/
Please report any problem ASAP.
bye
Jerome Alet
Dear Jerome,

I've upgrade my pkpgcounter to v1.85 (and restart my CUPS services) but
the problem still there :) the counter for my Samsung ML-1710 still
wrong ...

"Sep 11 08:20:48 ltsp jasmine[10308]: User 'hrd0aris' printed 1242 pages
on printer 'HRDPrinter'"

Please your help for this problem.
Thanks a lot.
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 01:32:41 UTC
Permalink
Post by Donny Christiaan
I've upgrade my pkpgcounter to v1.85 (and restart my CUPS services) but
the problem still there :) the counter for my Samsung ML-1710 still
wrong ...
"Sep 11 08:20:48 ltsp jasmine[10308]: User 'hrd0aris' printed 1242 pages
on printer 'HRDPrinter'"
If this can help Jerome :
- JASmine-Backend extracts the number of copies from the command-line
- It then launches pkpgcounter to get the number of pages for a single copy
of the document (I need to work on this, i'm not sure this is always
true...)
- It then records $copies and $pages in the database
- Finally, JASmine-Web displays $total=$pages*$copies

What would be great, Donny : "tail -f /var/log/syslog", then print the
problematic document, and watch for JASmine-Backend's debug messages; you
should see something like :

Sep 10 23:00:35 jasmine jasmine[25750]: Arguments: 16|nayco|Current style in
web design|11|_kde-filters media=A4,Normal,Upper
job-uuid=urn:uuid:31b72b90-4242-3123-690e-a9cd9db9e5d9|/var/spool/cups/d00016-001
[...]
Sep 10 23:00:36 jasmine jasmine[25750]: Document: /var/spool/cups/d00016-001
Sep 10 23:00:36 jasmine jasmine[25750]: Analyzer returned: 0
Sep 10 23:00:36 jasmine jasmine[25750]: Analyzing successful !
Sep 10 23:00:36 jasmine jasmine[25750]: Number of pages: 4

What is the "number of pages" you get ? Then look between the document title
and the print options, you should see the number of copies (here, 11). How
much ?

TIA :-)
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 02:50:04 UTC
Permalink
Post by Nicolas Costes
Post by Donny Christiaan
I've upgrade my pkpgcounter to v1.85 (and restart my CUPS services) but
the problem still there :) the counter for my Samsung ML-1710 still
wrong ...
"Sep 11 08:20:48 ltsp jasmine[10308]: User 'hrd0aris' printed 1242 pages
on printer 'HRDPrinter'"
- JASmine-Backend extracts the number of copies from the command-line
- It then launches pkpgcounter to get the number of pages for a single copy
of the document (I need to work on this, i'm not sure this is always
true...)
- It then records $copies and $pages in the database
- Finally, JASmine-Web displays $total=$pages*$copies
What would be great, Donny : "tail -f /var/log/syslog", then print the
problematic document, and watch for JASmine-Backend's debug messages; you
Sep 10 23:00:35 jasmine jasmine[25750]: Arguments: 16|nayco|Current style in
web design|11|_kde-filters media=A4,Normal,Upper
job-uuid=urn:uuid:31b72b90-4242-3123-690e-a9cd9db9e5d9|/var/spool/cups/d00016-001
[...]
Sep 10 23:00:36 jasmine jasmine[25750]: Document: /var/spool/cups/d00016-001
Sep 10 23:00:36 jasmine jasmine[25750]: Analyzer returned: 0
Sep 10 23:00:36 jasmine jasmine[25750]: Analyzing successful !
Sep 10 23:00:36 jasmine jasmine[25750]: Number of pages: 4
What is the "number of pages" you get ? Then look between the document title
and the print options, you should see the number of copies (here, 11). How
much ?
TIA :-)
Dear Nicolas,

I've activate the Debug but my system don't have /var/log/syslog
it only have "/var/log/message". How to activate /var/log/syslog?

Here is the tail -f /var/log/message contain jasmine log.

Sep 11 09:44:32 ltsp jasmine[18899]: Warning: Debug mode is activated,
you should turn it off when going to production ! To do so, set $debug
to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 11 09:44:34 ltsp jasmine[18899]: User 'edp0donny' printed 147 pages
on printer 'FOPrinter'

Here is the tail -f /var/log/cups/page_log:
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost

TIA
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 04:27:44 UTC
Permalink
Post by Donny Christiaan
Here is the tail -f /var/log/message contain jasmine log.
Sep 11 09:44:32 ltsp jasmine[18899]: Warning: Debug mode is activated,
you should turn it off when going to production ! To do so, set $debug
to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 11 09:44:34 ltsp jasmine[18899]: User 'edp0donny' printed 147 pages
on printer 'FOPrinter'
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
Is there a way in Jasmine to keep the print job's datas in a file
on disk ?

I'd like to be able to analyze such a file.

Or if you print from windows, just print to file, then send the file
to me along with the real number of pages in contains.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 04:40:07 UTC
Permalink
Post by Jerome Alet
Post by Donny Christiaan
Here is the tail -f /var/log/message contain jasmine log.
Sep 11 09:44:32 ltsp jasmine[18899]: Warning: Debug mode is activated,
you should turn it off when going to production ! To do so, set $debug
to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 11 09:44:34 ltsp jasmine[18899]: User 'edp0donny' printed 147 pages
on printer 'FOPrinter'
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
Is there a way in Jasmine to keep the print job's datas in a file
on disk ?
I'd like to be able to analyze such a file.
Or if you print from windows, just print to file, then send the file
to me along with the real number of pages in contains.
bye
Jerome Alet
This problem occur only on my Samsung ML-1710..
the other printer (HP OJ 7210 & HP LaserJet 4L) working good..

So I think this not about the file that I print but the jasmine? (CMIIW)
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 06:51:11 UTC
Permalink
Post by Donny Christiaan
Post by Jerome Alet
Is there a way in Jasmine to keep the print job's datas in a file
on disk ?
I'd like to be able to analyze such a file.
Or if you print from windows, just print to file, then send the file
to me along with the real number of pages in contains.
bye
Jerome Alet
This problem occur only on my Samsung ML-1710..
the other printer (HP OJ 7210 & HP LaserJet 4L) working good..
So I think this not about the file that I print but the jasmine? (CMIIW)
No. In fact it is not the file that you print which causes the problem,
but instead it's the printer driver you use.

I first thought that you used a QPDL (SPL2) driver, which pkpgcounter
versions prior to 1.85 didn't support.

But since accounting is still incorrect, I now believe you are using
a PCL3/4/5 driver.

pkpgcounter's PCL3/4/5 parser is buggy, but only for some printer drivers,
and it's possible that the driver you use when printing to the Samsung
printer reveals this problem.

I'm in the process of rewriting from scratch pkpgcounter's PCL3/4/5
parser (98% done already), so if you could send me a file as it send
to the printer (for example print to a file under windows and send me
the .prn file), then I could see what the problem is exactly.

NB : I don't care about the document's content, just print some
website to create a 2 or 3 pages document (and tell me how many pages
it contains in reality)

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 07:59:37 UTC
Permalink
Hi Jerome,
Post by Jerome Alet
I'm in the process of rewriting from scratch pkpgcounter's PCL3/4/5
parser (98% done already), so if you could send me a file as it send
to the printer (for example print to a file under windows and send me
the .prn file), then I could see what the problem is exactly.
I'm very happy to send the file but I don't know how to do it?
I'm using Fedora Core 4 with KDE, do I have to print some page to "Print
to file" and the result is in .ps file ? or what?
Post by Jerome Alet
NB : I don't care about the document's content, just print some
website to create a 2 or 3 pages document (and tell me how many pages
it contains in reality)
Thanks a lot for your kind help.
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 08:07:09 UTC
Permalink
Post by Donny Christiaan
I'm very happy to send the file but I don't know how to do it?
I'm using Fedora Core 4 with KDE, do I have to print some page to "Print
to file" and the result is in .ps file ? or what?
No, only if you printed from Windows.

If you print from *nix, I believe that unless Jasmine includes
such a feature there's no way for you to send the job's datas to
me as they will be sent to the printer.

The CUPS' data files are the job files **before** the last filter
in the chain will be applied, so they are of no help to me.

Nicolas, could you include a feature to tell Jasmine to store
the datas it receives in a file on the disk when you are in debug
mode, if such a feature is not present already ? FYI both PyKota
and Tea4CUPS use "keepfiles: yes" in their configuration files to
do such thing.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 08:55:14 UTC
Permalink
Post by Jerome Alet
Nicolas, could you include a feature to tell Jasmine to store
the datas it receives in a file on the disk when you are in debug
mode, if such a feature is not present already ? FYI both PyKota
and Tea4CUPS use "keepfiles: yes" in their configuration files to
do such thing.
Well, I'm looking at my code, because I coded this a couple of months
ago...

Ok, the tempfile is kept only and only if :
* Pkpgcounter returns something else than 0
* The MySQL query fails (syntax, server not reachable,...)
* I made an error while coding this ;-)

Problem : I just "discovered" that if JASmine-Backend does not get the
file to print via STDIN, it means that the file already exists (created
by CUPS) and we only get its path as an argument. So, this file gets
automatically deleted by CUPS... So actually the only cases where
JASmine-Backend keeps a copy of the file is when it creates a tempfile :
When it recieves its job on STDIN.

Anyway, I can quicly modify JASmine-Backend to take a copy of the document
before it deleted, in case of error. And, why not, do it _even_ if there
is no apparent error. I'll try to do it today.
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 08:07:09 UTC
Permalink
Post by Jerome Alet
Post by Donny Christiaan
Here is the tail -f /var/log/message contain jasmine log.
Yes, /var/log/message is nearly equivalent to /var/log/syslog... But look
Post by Jerome Alet
Post by Donny Christiaan
Sep 11 09:44:32 ltsp jasmine[18899]: Warning: Debug mode is
activated, you should turn it off when going to production ! To do
so, set $debug to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 11 09:44:34 ltsp jasmine[18899]: User 'edp0donny' printed 147
pages on printer 'FOPrinter'
It misses all the 'debug' messages. We need them ;-). Try to put such a
line in your /etc/syslog/conf and restart syslogd :

*.*;auth,authpriv.none -/var/log/syslog

Or if this kind of line is already present (nearly same beginning), look
at the end of the line to see where the messages go.
Post by Jerome Alet
Post by Donny Christiaan
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost
Is there a way in Jasmine to keep the print job's datas in a file
on disk ?
Yes, i've added such a system in 0.0.3, in order to feed you with "strange
files" ;-). The problem is the files are only kept if Pkpgcounter or
MySQL insertion fails... So in this case I think the tempfile will have
been deleted :-(
Post by Jerome Alet
I'd like to be able to analyze such a file.
You may have plenty when 0.0.3 goes into production here (work).
Post by Jerome Alet
Or if you print from windows, just print to file, then send the file
to me along with the real number of pages in contains.
You mean when printing from Windows, the file is sent in its final
version, and CUPS does not modify it ?
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 08:10:21 UTC
Permalink
Post by Nicolas Costes
You mean when printing from Windows, the file is sent in its final
version, and CUPS does not modify it ?
It depends on the printer driver again, but if you send anything from
Windows which is NOT PostScript, CUPS will send it as-is to the printer.

It's the same as if you printed from *nix with : lp -o raw somefile

The -o raw ensures that the file is passed as-is to the printer.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 08:49:21 UTC
Permalink
Dear Nicolas,

Thanks for your tips :)
please find my debug info below ...

I tried to print 1 page of text file .. but i count 106 pages :(
Post by Nicolas Costes
It misses all the 'debug' messages. We need them ;-). Try to put such a
*.*;auth,authpriv.none -/var/log/syslog
----------------------------------------------
Sep 11 15:50:27 ltsp jasmine[9590]: Warning: Debug mode is activated,
you should turn it off when going to production ! To do so, set $debug
to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 11 15:50:27 ltsp jasmine[9590]: ---> Print job started at Mon Sep 11
15:50:27 2006
Sep 11 15:50:27 ltsp jasmine[9590]: Command line:
/usr/lib/cups/backend/jasmine
Sep 11 15:50:27 ltsp jasmine[9590]: Arguments:
8882|edp0donny|Perl_CPAN.txt|1|PageSize=A4
multiple-document-handling=separate-documents-collated-copies
orientation-requested=3
Sep 11 15:50:27 ltsp jasmine[9590]: Environnement:
Sep 11 15:50:27 ltsp jasmine[9590]: - IPP_PORT= 631
Sep 11 15:50:27 ltsp jasmine[9590]: - RIP_MAX_CACHE= 8m
Sep 11 15:50:27 ltsp jasmine[9590]: - CUPS_FONTPATH=
/usr/share/cups/fonts
Sep 11 15:50:27 ltsp jasmine[9590]: - USER= root
Sep 11 15:50:27 ltsp jasmine[9590]: - LANG= en_US
Sep 11 15:50:27 ltsp jasmine[9590]: - PPD= /etc/cups/ppd/FOPrinter.ppd
Sep 11 15:50:27 ltsp jasmine[9590]: - CHARSET= utf-8
Sep 11 15:50:27 ltsp jasmine[9590]: - CONTENT_TYPE=
application/postscript
Sep 11 15:50:27 ltsp jasmine[9590]: - PRINTER= FOPrinter
Sep 11 15:50:27 ltsp jasmine[9590]: - CUPS_SERVER= localhost
Sep 11 15:50:27 ltsp jasmine[9590]: - CUPS_DATADIR= /usr/share/cups
Sep 11 15:50:27 ltsp jasmine[9590]: - PATH=
/usr/lib/cups/filter:/bin:/usr/bin
Sep 11 15:50:27 ltsp jasmine[9590]: - TMPDIR= /var/spool/cups/tmp
Sep 11 15:50:27 ltsp jasmine[9590]: - SOFTWARE= CUPS/1.1
Sep 11 15:50:27 ltsp jasmine[9590]: - DEVICE_URI=
jasmine:socket://192.168.0.99:9100
Sep 11 15:50:27 ltsp jasmine[9590]: - CUPS_SERVERROOT= /etc/cups
Sep 11 15:50:29 ltsp jasmine[9590]: Called with 5 args, $doc is read
from STDIN and the tempfile is /var/spool/cups/tmp/print.dN9593
Sep 11 15:50:29 ltsp jasmine[9590]: Document:
/var/spool/cups/tmp/print.dN9593
Sep 11 15:50:29 ltsp jasmine[9590]: Analyzer returned: 0
Sep 11 15:50:29 ltsp jasmine[9590]: Analyzing successful !
Sep 11 15:50:29 ltsp jasmine[9590]: Number of pages: 106
Sep 11 15:50:29 ltsp jasmine[9590]: $real_uri= socket://192.168.0.99:9100
Sep 11 15:50:29 ltsp jasmine[9590]: $real_backend= socket
Sep 11 15:50:29 ltsp jasmine[9590]: Calling backend:
/usr/lib/cups/backend/socket socket://192.168.0.99:9100 8882 edp0donny
Perl_CPAN.txt 1 PageSize=A4
multiple-document-handling=separate-documents-collated-copies
orientation-requested=3 /var/spool/cups/tmp/print.dN9593
Sep 11 15:50:29 ltsp jasmine[9590]: Real backend returned: 0
Sep 11 15:50:29 ltsp jasmine[9590]: Printing successful on
socket://192.168.0.99:9100 !
Sep 11 15:50:29 ltsp jasmine[9590]: User 'edp0donny' printed 106 pages
on printer 'FOPrinter'
Sep 11 15:50:29 ltsp jasmine[9590]: ---> Ended at: Mon Sep 11 15:50:29 2006
----------------------------------------------
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 08:51:53 UTC
Permalink
Post by Donny Christiaan
I tried to print 1 page of text file .. but i count 106 pages :(
Maybe you could generate an error, for example my renaming pkpgcounter
to another name, this way we would have the temporary file kept
on disk and you could send it to me ?

Nicolas, is this possible ?

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 08:56:25 UTC
Permalink
Post by Jerome Alet
Post by Donny Christiaan
I tried to print 1 page of text file .. but i count 106 pages :(
Maybe you could generate an error, for example my renaming pkpgcounter
to another name, this way we would have the temporary file kept
on disk and you could send it to me ?
Ok, I'll try to rename the pkpgcounter.
Where can i get the temporary file?
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 09:01:59 UTC
Permalink
Post by Jerome Alet
Post by Donny Christiaan
I tried to print 1 page of text file .. but i count 106 pages :(
Maybe you could generate an error, for example my renaming pkpgcounter
to another name, this way we would have the temporary file kept
on disk and you could send it to me ?
Nicolas, is this possible ?
That's funny, I just tried this here to test the "tempfile keeping"...
Well, see my last mail ;-)

Ok, two things, Donny :
* Do you use JASmine-0.0.3-rc1 ? If no, get it (*), we will be able to
comment a line or two in the code to force keeping the tempfile
* We are lucky: if I read correctly your log, it seems you get the file
via STDIN (if I understand what Jerome says, it's sent raw because of
Windows), so we are in the best case to get a copy of it !!!




(*) http://nayco3.free.fr/Jasmine/Releases/0.0.3/
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 09:14:51 UTC
Permalink
Post by Nicolas Costes
Post by Jerome Alet
Post by Donny Christiaan
I tried to print 1 page of text file .. but i count 106 pages :(
Maybe you could generate an error, for example my renaming pkpgcounter
to another name, this way we would have the temporary file kept
on disk and you could send it to me ?
Nicolas, is this possible ?
That's funny, I just tried this here to test the "tempfile keeping"...
Well, see my last mail ;-)
* Do you use JASmine-0.0.3-rc1 ? If no, get it (*), we will be able to
comment a line or two in the code to force keeping the tempfile
* We are lucky: if I read correctly your log, it seems you get the file
via STDIN (if I understand what Jerome says, it's sent raw because of
Windows), so we are in the best case to get a copy of it !!!
Ok Guyz,
let me install the 0.0.3 first and I'll contact you soon.
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 09:42:34 UTC
Permalink
Post by Nicolas Costes
* Do you use JASmine-0.0.3-rc1 ? If no, get it (*), we will be able to
comment a line or two in the code to force keeping the tempfile
* We are lucky: if I read correctly your log, it seems you get the file
via STDIN (if I understand what Jerome says, it's sent raw because of
Windows), so we are in the best case to get a copy of it !!!
Nicolas,

I've install 0.0.3-rcl but still have problem.
Please take a look at my syslog.

I print 1 page ot text file but the counter said 85 pages :(

-----------------------------------------------
Sep 11 16:42:25 ltsp jasmine[14459]: ---> Print job started at Mon Sep
11 16:42:25 2006
Sep 11 16:42:25 ltsp jasmine[14459]: Command line:
/usr/lib/cups/backend/jasmine
Sep 11 16:42:25 ltsp jasmine[14459]: Arguments:
8913|edp0donny|Perl_CPAN.txt|1|multiple-document-handling=separate-documents-collated-copies
orientation-requested=3
Sep 11 16:42:25 ltsp jasmine[14459]: Environnement:
Sep 11 16:42:25 ltsp jasmine[14459]: - IPP_PORT= 631
Sep 11 16:42:25 ltsp jasmine[14459]: - RIP_MAX_CACHE= 8m
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_FONTPATH=
/usr/share/cups/fonts
Sep 11 16:42:25 ltsp jasmine[14459]: - USER= root
Sep 11 16:42:25 ltsp jasmine[14459]: - LANG= en_US
Sep 11 16:42:25 ltsp jasmine[14459]: - PPD= /etc/cups/ppd/FOPrinter.ppd
Sep 11 16:42:25 ltsp jasmine[14459]: - CHARSET= utf-8
Sep 11 16:42:25 ltsp jasmine[14459]: - CONTENT_TYPE=
application/postscript
Sep 11 16:42:25 ltsp jasmine[14459]: - PRINTER= FOPrinter
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_SERVER= localhost
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_DATADIR= /usr/share/cups
Sep 11 16:42:25 ltsp jasmine[14459]: - PATH=
/usr/lib/cups/filter:/bin:/usr/bin
Sep 11 16:42:25 ltsp jasmine[14459]: - TMPDIR= /var/spool/cups/tmp
Sep 11 16:42:25 ltsp jasmine[14459]: - SOFTWARE= CUPS/1.1
Sep 11 16:42:25 ltsp jasmine[14459]: - DEVICE_URI=
jasmine:socket://192.168.0.99:9100
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_SERVERROOT= /etc/cups
Sep 11 16:42:26 ltsp jasmine[14459]: Called with 5 args, $doc is read
from STDIN and the tempfile is /var/spool/cups/tmp/print.k14463
Sep 11 16:42:26 ltsp jasmine[14459]: Document:
/var/spool/cups/tmp/print.k14463
Sep 11 16:42:26 ltsp jasmine[14459]: Analyzer returned: 0
Sep 11 16:42:26 ltsp jasmine[14459]: Analyzing successful !
Sep 11 16:42:26 ltsp jasmine[14459]: Number of pages: 85
Sep 11 16:42:26 ltsp jasmine[14459]: $real_uri= socket://192.168.0.99:9100
Sep 11 16:42:26 ltsp jasmine[14459]: $real_backend= socket
Sep 11 16:42:26 ltsp jasmine[14459]: Calling backend:
/usr/lib/cups/backend/socket socket://192.168.0.99:9100 8913 edp0donny
Perl_CPAN.txt 1
multiple-document-handling=separate-documents-collated-copies
orientation-requested=3 /var/spool/cups/tmp/print.k14463
Sep 11 16:42:27 ltsp jasmine[14459]: Real backend returned: 0
Sep 11 16:42:27 ltsp jasmine[14459]: Printing successful on
socket://192.168.0.99:9100 !
Sep 11 16:42:27 ltsp jasmine[14459]: User 'edp0donny' printed 85 pages
on printer 'FOPrinter'
Sep 11 16:42:27 ltsp jasmine[14459]: ---> Ended at: Mon Sep 11 16:42:27 2006
-----------------------------------------------
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Santosh Suryawanshi
2006-09-11 09:51:55 UTC
Permalink
I had faced the same problem, with Jasmine 0.0.2, when I print 1
page from Fedora Core 5, jasmine was showing 185. This was showing due to of
driver incompatibility. For that you have to use Generic Printer
(postscript) drivers.
Now it's working fine with me.

Regards
Santosh

-----Original Message-----
From: jasmine-owner-***@public.gmane.org [mailto:jasmine-owner-***@public.gmane.org] On Behalf
Of Donny Christiaan
Sent: Monday, September 11, 2006 3:13 PM
To: jasmine-***@public.gmane.org
Subject: [JASmine] Re: Fwd: Jasmine Counter Problem (using 0.0.3-rcl)
Post by Nicolas Costes
* Do you use JASmine-0.0.3-rc1 ? If no, get it (*), we will be able to
comment a line or two in the code to force keeping the tempfile
* We are lucky: if I read correctly your log, it seems you get the file
via STDIN (if I understand what Jerome says, it's sent raw because of
Windows), so we are in the best case to get a copy of it !!!
Nicolas,

I've install 0.0.3-rcl but still have problem.
Please take a look at my syslog.

I print 1 page ot text file but the counter said 85 pages :(

-----------------------------------------------
Sep 11 16:42:25 ltsp jasmine[14459]: ---> Print job started at Mon Sep
11 16:42:25 2006
Sep 11 16:42:25 ltsp jasmine[14459]: Command line:
/usr/lib/cups/backend/jasmine
Sep 11 16:42:25 ltsp jasmine[14459]: Arguments:
8913|edp0donny|Perl_CPAN.txt|1|multiple-document-handling=separate-documents
-collated-copies
orientation-requested=3
Sep 11 16:42:25 ltsp jasmine[14459]: Environnement:
Sep 11 16:42:25 ltsp jasmine[14459]: - IPP_PORT= 631
Sep 11 16:42:25 ltsp jasmine[14459]: - RIP_MAX_CACHE= 8m
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_FONTPATH=
/usr/share/cups/fonts
Sep 11 16:42:25 ltsp jasmine[14459]: - USER= root
Sep 11 16:42:25 ltsp jasmine[14459]: - LANG= en_US
Sep 11 16:42:25 ltsp jasmine[14459]: - PPD= /etc/cups/ppd/FOPrinter.ppd
Sep 11 16:42:25 ltsp jasmine[14459]: - CHARSET= utf-8
Sep 11 16:42:25 ltsp jasmine[14459]: - CONTENT_TYPE=
application/postscript
Sep 11 16:42:25 ltsp jasmine[14459]: - PRINTER= FOPrinter
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_SERVER= localhost
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_DATADIR= /usr/share/cups
Sep 11 16:42:25 ltsp jasmine[14459]: - PATH=
/usr/lib/cups/filter:/bin:/usr/bin
Sep 11 16:42:25 ltsp jasmine[14459]: - TMPDIR= /var/spool/cups/tmp
Sep 11 16:42:25 ltsp jasmine[14459]: - SOFTWARE= CUPS/1.1
Sep 11 16:42:25 ltsp jasmine[14459]: - DEVICE_URI=
jasmine:socket://192.168.0.99:9100
Sep 11 16:42:25 ltsp jasmine[14459]: - CUPS_SERVERROOT= /etc/cups
Sep 11 16:42:26 ltsp jasmine[14459]: Called with 5 args, $doc is read
from STDIN and the tempfile is /var/spool/cups/tmp/print.k14463
Sep 11 16:42:26 ltsp jasmine[14459]: Document:
/var/spool/cups/tmp/print.k14463
Sep 11 16:42:26 ltsp jasmine[14459]: Analyzer returned: 0
Sep 11 16:42:26 ltsp jasmine[14459]: Analyzing successful !
Sep 11 16:42:26 ltsp jasmine[14459]: Number of pages: 85
Sep 11 16:42:26 ltsp jasmine[14459]: $real_uri= socket://192.168.0.99:9100
Sep 11 16:42:26 ltsp jasmine[14459]: $real_backend= socket
Sep 11 16:42:26 ltsp jasmine[14459]: Calling backend:
/usr/lib/cups/backend/socket socket://192.168.0.99:9100 8913 edp0donny
Perl_CPAN.txt 1
multiple-document-handling=separate-documents-collated-copies
orientation-requested=3 /var/spool/cups/tmp/print.k14463
Sep 11 16:42:27 ltsp jasmine[14459]: Real backend returned: 0
Sep 11 16:42:27 ltsp jasmine[14459]: Printing successful on
socket://192.168.0.99:9100 !
Sep 11 16:42:27 ltsp jasmine[14459]: User 'edp0donny' printed 85 pages
on printer 'FOPrinter'
Sep 11 16:42:27 ltsp jasmine[14459]: ---> Ended at: Mon Sep 11 16:42:27 2006
-----------------------------------------------
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-12 02:37:13 UTC
Permalink
Post by Santosh Suryawanshi
I had faced the same problem, with Jasmine 0.0.2, when I print 1
page from Fedora Core 5, jasmine was showing 185. This was showing due to of
driver incompatibility. For that you have to use Generic Printer
(postscript) drivers.
Now it's working fine with me.
I didn't find any postscript driver for my Samsung ML-1710 :(
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-11 09:53:43 UTC
Permalink
Post by Donny Christiaan
I've install 0.0.3-rcl but still have problem.
This is expected ;-) !
But now, if I coded it well, you should have some file(s)
in /var/spool/cups/tmp...

If yes, I thinks Jerome will be happy : We just need to find a way to send
them to him. Maybe we can use my berlios.de bugs tracker, or Jerome has
something to manage bugs and post attachements ?

Donny : Print, print and print again "faulty" documents ;-)
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-11 10:00:00 UTC
Permalink
Post by Nicolas Costes
Post by Donny Christiaan
I've install 0.0.3-rcl but still have problem.
This is expected ;-) !
But now, if I coded it well, you should have some file(s)
in /var/spool/cups/tmp...
If yes, I thinks Jerome will be happy : We just need to find a way to send
them to him. Maybe we can use my berlios.de bugs tracker, or Jerome has
something to manage bugs and post attachements ?
Donny : Print, print and print again "faulty" documents ;-)
Ok Nicolas, I'll do it tomorrow :)
It's time for me to go home :)

thanks for your cooperation ...

see ya ....
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 11:09:56 UTC
Permalink
Post by Donny Christiaan
Ok Nicolas, I'll do it tomorrow :)
It's time for me to go home :)
What you could do is this :

- Download and install the latest development version of pkpgcounter,
which features the PCL3/4/5 parser rewritten from scratch.

- Print something on the Samsung printer.

- See if the result is better now, and report any problem, along
with the data files.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-12 02:12:16 UTC
Permalink
Hi All,
Post by Jerome Alet
- Download and install the latest development version of pkpgcounter,
which features the PCL3/4/5 parser rewritten from scratch.
I've install pkpgcounter 2.00
Post by Jerome Alet
- Print something on the Samsung printer.
Still wrong counter when I print from my linux but if I print on the
same printer (Samsung) from Ms. Windows XP (via Samba Printer Share) it
count very good .... (since I use pkpgcounter 1.85)

Is it the driver problem?
Post by Jerome Alet
- See if the result is better now, and report any problem, along
with the data files.
I would like to find another printer driver for my Samsung ML-1710.
Any sugestion ?
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-12 07:37:45 UTC
Permalink
Post by Donny Christiaan
I would like to find another printer driver for my Samsung ML-1710.
Any sugestion ?
http://splix.ap2c.org

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-13 05:00:16 UTC
Permalink
Post by Jerome Alet
Post by Donny Christiaan
I would like to find another printer driver for my Samsung ML-1710.
Any sugestion ?
http://splix.ap2c.org
bye
Jerome Alet
Jerome & Nicolas,

Finally I change the driver to "splix" using Samsung ML-2250 on my
Samsung ML-1710 and your pkpgcounter work fine :))

Thanks to all of you ...

I'll contact you guyz if I have another problem :)
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-13 05:20:18 UTC
Permalink
Post by Donny Christiaan
Finally I change the driver to "splix" using Samsung ML-2250 on my
Samsung ML-1710 and your pkpgcounter work fine :))
Thanks to all of you ...
I'll contact you guyz if I have another problem :)
Glad it works, but please could you send some files to me produced
with your other driver as asked in my previous message ?

It seems your previous driver generates SPL1 instead of SPL2 (QPDL),
and I'm currently writing a parser for it, but I need some sample
files to verify the parser works as expected.

Thanks in advance

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-13 05:49:06 UTC
Permalink
Post by Jerome Alet
Glad it works, but please could you send some files to me produced
with your other driver as asked in my previous message ?
It seems your previous driver generates SPL1 instead of SPL2 (QPDL),
and I'm currently writing a parser for it, but I need some sample
files to verify the parser works as expected.
Ok Jerome ... I'll send it to your mail ...
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-14 03:18:15 UTC
Permalink
Jerome & Nicolas,

I faced another problem using Jasmine & pkpgcounter.

My user tried to print 10 copies of the same page (1page) but the output
only print 1 page. It happens when I use "splix" driver.

After I tried to use my default driver ML-1710 (foomatic+gdi) still have
problem ... when I tried to print 2 copies of 1 pages, the output is
twice of the copy (it print 4 copies) but when i tried with my default
driver without jasmine.socket it print good.

I also tried to print with splix without jasmine.socket but it still
print 1 page even I choose to make 4 copies.

here are the summary:

Splix+Jasmine --> print 1 page (2 copies) --> output: 1 page
ML-1710(foomatic+gdi)+Jasmine --> print 1 page (2 copies) --> output: 4
pages
Splix --> print 1 page (2 copies) --> output: 1 page
ML-1710(foomatic+gdi) --> print 1 page (2 copies) --> output: 2 pages

Thanks ...
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-14 04:38:11 UTC
Permalink
Post by Donny Christiaan
My user tried to print 10 copies of the same page (1page) but the output
only print 1 page. It happens when I use "splix" driver.
...

If the number of pages counted by Jasmine is identical to the real number
of pages printed, then your problem is not in pkpgcounter and I can''t
help.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-14 07:55:39 UTC
Permalink
Post by Donny Christiaan
Jerome & Nicolas,
Hello !
Post by Donny Christiaan
I faced another problem using Jasmine & pkpgcounter.
Splix+Jasmine --> print 1 page (2 copies) --> output: 1 page
ML-1710(foomatic+gdi)+Jasmine --> print 1 page (2 copies) --> output: 4
pages
Splix --> print 1 page (2 copies) --> output: 1 page
ML-1710(foomatic+gdi) --> print 1 page (2 copies) --> output: 2 pages
Well, I've been waiting for something like this for months now... What I
must admit is that : First, I still have not understood all about CUPS
backends, and moreover, I haven't got any printer with "strange" drivers
so I cannot test JASmine-Backend in these situations. By "strange"
drivers, I mean cheap printers that are not Postscript/PCL ;-), because
at work all our printers are laser or business jet.

So, here is the problem : CUPS' behaviour is different in raw mode and
'normal' mode. I know that in one of these modes, the "copies" parameter
sent to the backend must be ignored, as the document already contains the
copies. And when operating in the other mode, the backend _must_ take
care of the copies itself...

I haven't worked on this issue for now, and I'm not sure that JASmine
should do copies, because it's and intermediary backend. Well, in fact
i've got a small idea : JASmine should launch the final backend the same
way it was itself launched, using the same number of arguments. It
doesn't at the moment, and always uses the same mode.

Jerome, what are your thoughts about it ? How do you do this in Pykota ?
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-14 08:31:34 UTC
Permalink
Hi,
Post by Nicolas Costes
I haven't worked on this issue for now, and I'm not sure that JASmine
should do copies, because it's and intermediary backend. Well, in fact
i've got a small idea : JASmine should launch the final backend the same
way it was itself launched, using the same number of arguments. It
doesn't at the moment, and always uses the same mode.
Jerome, what are your thoughts about it ? How do you do this in Pykota ?
Like this.

PyKota passes the input datas as-is. In particular, the backend
passes the arguments it receives unchanged, excepted the very first
one (device uri) where the wrapper's name is removed (cupspykota://
for PyKota). So the real backend acts just as if PyKota wasn't there.

When printing in normal mode, i.e. non-raw, the copies argument
is probably always 1, because the copies were generated by the
printer driver already.

When printing in raw mode, the backend has to generate the copies,
but since Jasmine is an intermediate backend, it shouldn't do anything
itself.

So what Jasmine **should** do is simply multiply pkpgcounter's return
value by the number of copies passed as an argument, and let
the original backend decide if several copies have to be generated
or not.

NB : CUPS v1.2.3 fixed a bug wrt number of copies. See cups.org for
details.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-14 10:03:30 UTC
Permalink
Post by Jerome Alet
When printing in raw mode, the backend has to generate the copies,
but since Jasmine is an intermediate backend, it shouldn't do anything
itself.
So what Jasmine **should** do is simply multiply pkpgcounter's return
value by the number of copies passed as an argument, and let
the original backend decide if several copies have to be generated
or not.
Well, I need to verify, but I think that is exactly JASmine-Backend does.
In fact, I have a doubt : JASmine _always_ launches the real backend
using 6 arguments, giving it the path to the document to print. So I
guess that the real backend always think to be in the same mode, and
never generates copies itself. Because :

* 6 args : JASmine gets the document's path, and passes it to the real
backend with 6 args. So, both JASmine and the real backend work in the
same mode, and I thinks this is good.

* 5 args : JASmine reads STDIN and sends the data into a tempfile, then
launches the real backend with _6_ arguments. JASmine and the real
backend are thus NOT in the same mode. I guess this is an error, because
the backend will think it does not have to generate copies. I just got
aware of this, because of this thread.

Well, I'm not sure, but I need to work on this. For 0.0.4 ;-) ?
--
,,
(°> Nicolas Costes
/|\ IUT de La Roche / Yon
( ^ ) Clé publique: http://www.keyserver.net/
^ ^ Musique libre: http://musique-legale.info/ -
http://www.jamendo.com/?s=concept

-- Attached file included as plaintext by Listar --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBFCSj1Nc2aXy7LuOgRAki6AJ4i9AeZcF3tl0Z7LZuy2RMz5N0QXwCfcOUJ
i3F2rB6I168nXL8VRfBt3xA=
=5kCh
-----END PGP SIGNATURE-----
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-14 10:06:33 UTC
Permalink
Post by Nicolas Costes
* 6 args : JASmine gets the document's path, and passes it to the real
backend with 6 args. So, both JASmine and the real backend work in the
same mode, and I thinks this is good.
In this mode the # of copies passed as an argument should be used
by the real backend to transmit the input file # times to the printer.
Post by Nicolas Costes
* 5 args : JASmine reads STDIN and sends the data into a tempfile, then
launches the real backend with _6_ arguments. JASmine and the real
backend are thus NOT in the same mode. I guess this is an error, because
the backend will think it does not have to generate copies. I just got
aware of this, because of this thread.
In this case the real backend should send the datas only once to
the printer. Jasmine should be modified to behave transparently
i.e. NOT pass an additionnal argument to the real backend,
but instead pass the datas to the real backend's stdin.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Nicolas Costes
2006-09-14 10:31:23 UTC
Permalink
Post by Jerome Alet
In this case the real backend should send the datas only once to
the printer. Jasmine should be modified to behave transparently
i.e. NOT pass an additionnal argument to the real backend,
but instead pass the datas to the real backend's stdin.
Ok, so this is confirmed... Thanks a lot.

So, Donny, this issue will hopefully be solved for 0.0.4 ! But I need to
finish 0.0.3 before, and while it is nearly freezed (the only thing left
is to code the 'developer' mode that keeps tempfiles to send them to
Jerome for analyzing ;-)), I'm currently starting to work differently
(and more efficiently, thanks to SVN) and I need to review all the files
to adpat them to my new way of working. So I have a nearly finished
product that cannot be released now (apart from release candidates)
because not everything is coherent... Sorry for the delay.
--
,,
(°> Nicolas Costes
/|\ IUT de La Roche / Yon
( ^ ) Clé publique: http://www.keyserver.net/
^ ^ Musique libre: http://musique-legale.info/ -
http://www.jamendo.com/?s=concept

-- Attached file included as plaintext by Listar --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBFCS99Nc2aXy7LuOgRAkGxAJ0SniPGbRo/EQapONpOwgHlV5HzeQCfWo5I
QCNCf/+dMOEkZmVzLMBbC28=
=2yF7
-----END PGP SIGNATURE-----
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-15 00:29:36 UTC
Permalink
Post by Nicolas Costes
So, Donny, this issue will hopefully be solved for 0.0.4 ! But I need to
finish 0.0.3 before, and while it is nearly freezed (the only thing left
is to code the 'developer' mode that keeps tempfiles to send them to
Jerome for analyzing ;-)), I'm currently starting to work differently
(and more efficiently, thanks to SVN) and I need to review all the files
to adpat them to my new way of working. So I have a nearly finished
product that cannot be released now (apart from release candidates)
because not everything is coherent... Sorry for the delay.
Thats okay Nicolas ...
I'll waiting the 0.0.4 version :)

Please inform me when you are finish with the latest version...
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-11 10:14:57 UTC
Permalink
Post by Nicolas Costes
Post by Donny Christiaan
I've install 0.0.3-rcl but still have problem.
This is expected ;-) !
But now, if I coded it well, you should have some file(s)
in /var/spool/cups/tmp...
If yes, I thinks Jerome will be happy : We just need to find a way to send
them to him. Maybe we can use my berlios.de bugs tracker, or Jerome has
something to manage bugs and post attachements ?
I've got an email address !

Just send the files to me as a gzipped tarball, or put them on a
website somewhere and I'll download them

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-12 02:29:22 UTC
Permalink
Post by Jerome Alet
Post by Nicolas Costes
Post by Donny Christiaan
I've install 0.0.3-rcl but still have problem.
This is expected ;-) !
But now, if I coded it well, you should have some file(s)
in /var/spool/cups/tmp...
If yes, I thinks Jerome will be happy : We just need to find a way to send
them to him. Maybe we can use my berlios.de bugs tracker, or Jerome has
something to manage bugs and post attachements ?
I've got an email address !
Just send the files to me as a gzipped tarball, or put them on a
website somewhere and I'll download them
bye
Jerome Alet
Jerome,

I've tried to print again and still have problem.
I've sent the file to your email, hope you can help me :)

It should print 1 page but the counter said 211 pages :)

==========================================================================
Sep 12 09:27:18 ltsp jasmine[2614]: Warning: Debug mode is activated,
you should turn it off when going to production ! To do so, set $debug
to 0 in the /usr/lib/cups/backend/jasmine perl script.
Sep 12 09:27:18 ltsp jasmine[2614]: ---> Print job started at Tue Sep 12
09:27:18 2006
Sep 12 09:27:18 ltsp jasmine[2614]: Command line:
/usr/lib/cups/backend/jasmine
Sep 12 09:27:18 ltsp jasmine[2614]: Arguments:
8978|edp0donny|mailing-list.txt|1|multiple-document-handling=separate-documents-collated-copies
orientation-requested=3
Sep 12 09:27:18 ltsp jasmine[2614]: Environnement:
Sep 12 09:27:18 ltsp jasmine[2614]: - IPP_PORT= 631
Sep 12 09:27:18 ltsp jasmine[2614]: - RIP_MAX_CACHE= 8m
Sep 12 09:27:18 ltsp jasmine[2614]: - CUPS_FONTPATH=
/usr/share/cups/fonts
Sep 12 09:27:18 ltsp jasmine[2614]: - USER= root
Sep 12 09:27:18 ltsp jasmine[2614]: - LANG= en_US
Sep 12 09:27:18 ltsp jasmine[2614]: - PPD= /etc/cups/ppd/FOPrinter.ppd
Sep 12 09:27:18 ltsp jasmine[2614]: - CHARSET= utf-8
Sep 12 09:27:18 ltsp jasmine[2614]: - CONTENT_TYPE=
application/postscript
Sep 12 09:27:18 ltsp jasmine[2614]: - PRINTER= FOPrinter
Sep 12 09:27:18 ltsp jasmine[2614]: - CUPS_SERVER= localhost
Sep 12 09:27:18 ltsp jasmine[2614]: - CUPS_DATADIR= /usr/share/cups
Sep 12 09:27:18 ltsp jasmine[2614]: - PATH=
/usr/lib/cups/filter:/bin:/usr/bin
Sep 12 09:27:18 ltsp jasmine[2614]: - TMPDIR= /var/spool/cups/tmp
Sep 12 09:27:18 ltsp jasmine[2614]: - SOFTWARE= CUPS/1.1
Sep 12 09:27:18 ltsp jasmine[2614]: - DEVICE_URI=
jasmine:socket://192.168.0.99:9100
Sep 12 09:27:18 ltsp jasmine[2614]: - CUPS_SERVERROOT= /etc/cups
Sep 12 09:27:19 ltsp jasmine[2614]: Called with 5 args, $doc is read
from STDIN and the tempfile is /var/spool/cups/tmp/print.SO2619
Sep 12 09:27:19 ltsp jasmine[2614]: Document:
/var/spool/cups/tmp/print.SO2619
Sep 12 09:27:20 ltsp jasmine[2614]: Analyzer returned: 0
Sep 12 09:27:20 ltsp jasmine[2614]: Analyzing successful !
Sep 12 09:27:20 ltsp jasmine[2614]: Number of pages: 211
Sep 12 09:27:20 ltsp jasmine[2614]: $real_uri= socket://192.168.0.99:9100
Sep 12 09:27:20 ltsp jasmine[2614]: $real_backend= socket
Sep 12 09:27:20 ltsp jasmine[2614]: Calling backend:
/usr/lib/cups/backend/socket socket://192.168.0.99:9100 8978 edp0donny
mailing-list.txt 1
multiple-document-handling=separate-documents-collated-copies
orientation-requested=3 /var/spool/cups/tmp/print.SO2619
Sep 12 09:27:21 ltsp jasmine[2614]: Real backend returned: 0
Sep 12 09:27:21 ltsp jasmine[2614]: Printing successful on
socket://192.168.0.99:9100 !
Sep 12 09:27:21 ltsp jasmine[2614]: User 'edp0donny' printed 211 pages
on printer 'FOPrinter'
Sep 12 09:27:21 ltsp jasmine[2614]: ---> Ended at: Tue Sep 12 09:27:21 2006
==========================================================================
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-12 04:49:43 UTC
Permalink
Post by Donny Christiaan
I've tried to print again and still have problem.
I've sent the file to your email, hope you can help me :)
It should print 1 page but the counter said 211 pages :)
Thanks for the file !

If you look at it with hexcurse (for example), you'll see
PJL ENTER LANGUAGE = SMART

This means that your printer driver produces Yet Another Page Description
Language which is unknown to pkpgcounter for now.

Unfortunately can't give it a more complete look before this evening,
because maybe it's a small variation over QPDL, but what I can say
for sure is that for now you're stuck : accounting won't work until
either you find a parser or documentation about this printer language,
or you install a different printer driver, or I make this language
recognized by pkpgcounter.

Sorry for this.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Donny Christiaan
2006-09-12 06:42:21 UTC
Permalink
Post by Jerome Alet
Thanks for the file !
If you look at it with hexcurse (for example), you'll see
PJL ENTER LANGUAGE = SMART
This means that your printer driver produces Yet Another Page Description
Language which is unknown to pkpgcounter for now.
Unfortunately can't give it a more complete look before this evening,
because maybe it's a small variation over QPDL, but what I can say
for sure is that for now you're stuck : accounting won't work until
either you find a parser or documentation about this printer language,
or you install a different printer driver, or I make this language
recognized by pkpgcounter.
Jerome,

When I print from WinXP client via Samba Printer Share, it counts
correctly at the same printer (Samsung).

Why it can be happen?

If you don't mind, please make this language recognized by pkpgcounter :)

Hope I get good news from you ...
--
Best Regards,
Donny Christiaan.
dchristiaan-***@public.gmane.org
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-12 07:14:21 UTC
Permalink
Post by Donny Christiaan
When I print from WinXP client via Samba Printer Share, it counts
correctly at the same printer (Samsung).
Why it can be happen?
Because the driver used is not the same in this case.
Post by Donny Christiaan
If you don't mind, please make this language recognized by pkpgcounter :)
So could you tell for sure when this doesn't work ?

Is this only when printing from *nix ?

In this is the case, please send to me your printer's PPD file as
present in /etc/cups/ppd/ as well as your printers.conf
file.

bye,

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-12 20:43:01 UTC
Permalink
Good evening,
Post by Donny Christiaan
I've tried to print again and still have problem.
I've sent the file to your email, hope you can help me :)
It should print 1 page but the counter said 211 pages :)
Could you send to me a file printed with the very same driver
but which contains 2 pages ?

Then repeat the operation with another document which contains 5 pages.

Send both documents to me.

Thanks in advance.

bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Jerome Alet
2006-09-12 20:46:12 UTC
Permalink
Post by Jerome Alet
Good evening,
Post by Donny Christiaan
I've tried to print again and still have problem.
I've sent the file to your email, hope you can help me :)
It should print 1 page but the counter said 211 pages :)
Could you send to me a file printed with the very same driver
but which contains 2 pages ?
Then repeat the operation with another document which contains 5 pages.
Send both documents to me.
Oh, and I forgot : please ensure that both documents' contents is
varied, e.g. different texts with different pictures mixed at
different places.
Post by Jerome Alet
Thanks in advance.
bye

Jerome Alet
--
Put JASmine in your Cups !

To unsubscribe :
mailto:jasmine-request-***@public.gmane.org?subject=unsubscribe
List archives :
http://dir.gmane.org/gmane.comp.printing.jasmine.user
http://www.mail-archive.com/jasmine%40ml.free.fr/
Web site :
http://jasmine.berlios.de/
Loading...