You are not logged in.
Hi All,
I've been using arch for a few days, and I am starting to get my system set up how I like it, but there is one show stopper. I use a Canon ir adv c2022 printer on my work network. I have set up cups and the ir-advc2020/2030 driver, but everytime I send the printer a print job, it spits out an error saying "Unsupported contents in PDF file". This printer is actually PCL printer with an internal pdf converter. The printer works fine under ubuntu.
1) Is there any PCL drivers still available for arch?
2) Is there a way to force cups to send PCL or Postscript to the printer instead of the new PDF?
3) Could it be something else, if so what?
Cheers.
Last edited by mp035 (2013-07-10 01:03:32)
Offline
Welcome to Arch.
Don't know where that driver you use came from, but there is one inthe AUR too.
As PDF is the standard printjob format, you could try and install cups-pdf, also from AUR.
Offline
Hi qinohe, thanks for the reply. The driver is from the aur. Cups-pdf is for a print-to-pdf function, I have installed that and it works fine. The problem seems to be that the print system now sends pdf to the printer rather than postscript or pcl.
I think I need a way to force cups to send postscript.
So to reiterate:
1) Is there any PCL drivers still available for arch?
2) Is there a way to force cups to send PCL or Postscript to the printer instead of the new PDF?
3) Could it be something else, if so what?
Offline
You could always (even in a script to automate it) convert the pdf to ps and send that to the printer.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hi qinohe, thanks for the reply. The driver is from the aur. Cups-pdf is for a print-to-pdf function, I have installed that and it works fine. The problem seems to be that the print system now sends pdf to the printer rather than postscript or pcl.
I think I need a way to force cups to send postscript.
So to reiterate:
1) Is there any PCL drivers still available for arch?
2) Is there a way to force cups to send PCL or Postscript to the printer instead of the new PDF?
3) Could it be something else, if so what?
Hi mp035, yeah, your right about cups-pdf .
1) yes, 'gutenprint' is in the 'Extra' repo.
2) maybe 'ghostscript' can do this can do this, but I never tried.
2) there also is an interpeter for PS, 'ghostpdl' in AUR
3) I don't know, did you explore this part of the CUPS wiki?
Offline
A number of ways to do that.
Ghostscript will convert a .pdf to .ps, ps to .pdf, .pdf to pcl, etc
http://linux.die.net/man/1/pdf2ps
http://www.ghostscript.com/doc/9.07/Ps2pdf.htm
http://linux.die.net/man/1/ps2pdf
1) Is there any PCL drivers still available for arch?
Yes, you can convert a .pdf or .ps file to PCL language, and then send the .pcl file to the printer. Make a script to expedite it.
#! /usr/bin/env bash
# Takes a postscript file and convert it to PCL
# Output is suitable for an hp laserjet printer that does NOT have
# the extra postscript option installed
# You might want to tweak this between "laserjet" or "ljet4" or whatever
# Specify Ghostscript device.
DEVICE=laserjet
# Ouput file name
OUTFILE=output.pcl
GS='gs -q -dSAFER -dNOPAUSE '
GS="$GS -sDEVICE=$DEVICE"
echo "Usage:"
echo " ps2pcl file.ps"
echo " ps2pcl file.ps -o output.pcl"
echo ""
echo "Will convert PS to PCL and dump to output.ps"
echo "or the specified output file"
echo ""
while getopts "o:h" flag ; do
case $flag in
o)
OUTFILE=$OPTARG
;;
h|*)
usage
exit 1
;;
esac
done
shift $(($OPTIND - 1))
INFILE="$1"
if [[ "$INFILE" == "" ]] ; then
INFILE=-
fi
$GS -sOutputFile=$OUTFILE $INFILE -c quit2) Is there a way to force cups to send PCL or Postscript to the printer instead of the new PDF?
Yes, convert the .pdf to PCl or .ps, then send that to the printer.
Or save the document in .ps format to begin with.
You could also do that in a 1 liner
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=ljet4 -sOutputFile=out.pcl /path/in.pdfYou could also convert that .pdf and send it to the printer port with something like
gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=ljet4 -sOutputFile=- /path/in.pdf | cat - > /dev/usb/lp1You would need to be root, and use your own device nodes.
3) Could it be something else, if so what?
If you have a PCl printer then send it PCL language.
If you want to use CUPS, send a PCL printer a PCL file.
Offline
Thanks to all the suggestions, unfortunately I am not experienced in how to put all of those scripts and one liners into the cups stack, so I got an old .deb which was in my personal archives which contains the PostScript driver for the company printer. It seems this package is no longer available on the brother website. I manually installed the deb by untaring it and installing all the dependencies from the control section, I then copied the data secion to the root directory (after checking the contents) and ran the postinst script.
I used the postscript driver which subsequently appeared in cups and I'm in action. Thanks again for the suggestions.
EDIT: Update, the linux pcl drivers are still available on the european canon website at http://software.canon-europe.com/products/0010918.asp the trick is to search for "cque" linux drivers, not pcl or postscript.
Last edited by mp035 (2013-07-10 02:37:57)
Offline