Discussion:
CUPS with IPP protocol sending PCL cc
Arthur Braschi
2006-03-10 13:34:00 UTC
Permalink
I'm using CUPS with IPP protocol to send reports to printers. I have some reports that mix PCL control characters to program printer to do something like:

1) Change font size in the middle of line, like txtxtxtxtxtBIGBIGBIGtxtxtxtxt (not lower/upper case).

2) To program Barcode printers.

How can I do this?
Michael Sweet
2006-03-10 13:55:07 UTC
Permalink
Post by Arthur Braschi
1) Change font size in the middle of line, like txtxtxtxtxtBIGBIGBIGtxtxtxtxt (not lower/upper case).
2) To program Barcode printers.
How can I do this?
To print the files, use the application/vnd.cups-raw file type (or
just "-o raw" on the command-line) to pass the file directly to the
printer unfiltered.

As for generating the printer data, there is nothing in CUPS right
now to automatically do what you want - PS/PDF files can be converted
and printed, of course, but there is no driver/filter to generate PCL
text or barcodes.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
Minatra, Pat H.
2006-03-10 14:03:00 UTC
Permalink
I am trying to send PCL command code (change fonts, change font style,
alignement to name a few) to our HP printers using the laserjet.ppd
delivered file with CUPs v.1.1.23 and the PCL code is ignored.

I have tried the -o raw option and there is no change.

I have tried different configurations with no change.

Can anyone give me anything else to try to get this working as it is
critical for us to be able to do this.

Thanks for any help or assistance.

-------------------------
"Life is but a twinkle in the eye of eternity"
"The shortest distance between a problem and a solution is the distance
between your knees and the floor"
"sorrow looks back - worry looks around - faith looks up"
Regards,
Pat H. Minatra - N5GJR
(325) 670-5804 voice
(325) 670-1570 fax
Hardin*Simmons University
www.hsutx.edu
PO BOX 16040
Abilene, TX 79698

-----Original Message-----
From: cups-bounces-B9D8k9nSxTHQT0dZR+***@public.gmane.org [mailto:cups-bounces-B9D8k9nSxTHQT0dZR+***@public.gmane.org] On Behalf
Of Michael Sweet
Sent: Friday, March 10, 2006 7:55 AM
To: cups-B9D8k9nSxTHQT0dZR+***@public.gmane.org
Subject: [cups.general] Re: CUPS with IPP protocol sending PCL cc
Post by Arthur Braschi
I'm using CUPS with IPP protocol to send reports to printers. I have
some reports that mix PCL control characters to program printer to do
Post by Arthur Braschi
1) Change font size in the middle of line, like
txtxtxtxtxtBIGBIGBIGtxtxtxtxt (not lower/upper case).
Post by Arthur Braschi
2) To program Barcode printers.
How can I do this?
To print the files, use the application/vnd.cups-raw file type (or
just "-o raw" on the command-line) to pass the file directly to the
printer unfiltered.

As for generating the printer data, there is nothing in CUPS right
now to automatically do what you want - PS/PDF files can be converted
and printed, of course, but there is no driver/filter to generate PCL
text or barcodes.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
Arthur Braschi
2006-03-13 21:44:20 UTC
Permalink
Post by Michael Sweet
Post by Arthur Braschi
1) Change font size in the middle of line, like txtxtxtxtxtBIGBIGBIGtxtxtxtxt (not lower/upper case).
2) To program Barcode printers.
How can I do this?
To print the files, use the application/vnd.cups-raw file type (or
just "-o raw" on the command-line) to pass the file directly to the
printer unfiltered.
As for generating the printer data, there is nothing in CUPS right
now to automatically do what you want - PS/PDF files can be converted
and printed, of course, but there is no driver/filter to generate PCL
text or barcodes.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
Mr. Sweet,

See the line example:

"there is nothing in ^(s7BCUPS^(s0B right now to automatically"

where symbol ^ are the ESC (x1b) character.

In the example above I would to print the word CUPS in BOLD letters.

The CUPS takes off the ESCAPE sequences from the middle of lines when sends the report to the printer?
Michael Sweet
2006-03-13 23:49:27 UTC
Permalink
Post by Arthur Braschi
Post by Michael Sweet
Post by Arthur Braschi
1) Change font size in the middle of line, like txtxtxtxtxtBIGBIGBIGtxtxtxtxt (not lower/upper case).
2) To program Barcode printers.
How can I do this?
To print the files, use the application/vnd.cups-raw file type (or
just "-o raw" on the command-line) to pass the file directly to the
printer unfiltered.
As for generating the printer data, there is nothing in CUPS right
now to automatically do what you want - PS/PDF files can be converted
and printed, of course, but there is no driver/filter to generate PCL
text or barcodes.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
Mr. Sweet,
"there is nothing in ^(s7BCUPS^(s0B right now to automatically"
where symbol ^ are the ESC (x1b) character.
In the example above I would to print the word CUPS in BOLD letters.
The CUPS takes off the ESCAPE sequences from the middle of lines when sends the report to the printer?
Yes, the default would be to treat the file as a plain text file,
which will strip ALL control codes from the file.

You need to use the "-oraw" option to pass the PCL file through
unchanged.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
Loading...