Originally Posted by
tweedledee
I tried this but it didn't work. The printer still prints garbage.
However I've been doing some more investigation, and I've found out how to make the standard Ubuntu 12.04 CUPS install work with my SCX-4825FN:
CUPS filters a job using these processes: pdftopdf->pdftops->rastertosamsungspl. But both pdftopdf and pdftops cause rastertosamgungspl to print garbage.
We can bypass both these filters by creating a new filter and a new rule. Create the file pdftosamsungps.sh:
Code:
#!/bin/sh
INFILE=${6:--}
MYDIR=`dirname $0`
pdftocairo -q -level3 -origpagesizes -ps $INFILE - | $MYDIR/pstops "$1" "$2" "$3" "$4" "$5"
And create the rule file samsung.convs:
Code:
application/pdf application/vnd.cups-postscript 10 pdftosamsungps
Now install these files and restart CUPS:
Code:
sudo install -m 755 pdftosamsungps.sh /usr/lib/cups/filter/pdftosamsungps
sudo install -m 644 samsung.convs /usr/share/cups/mime/
sudo service cups restart
I like this fix because you don't have to rebuild CUPS or change existing files.
I'll do some more investigating of pdftopdf and pdftops, and maybe mail the cups-filters developers. But it might just be that they produce postscript just fine and there's a problem with Samsung's rastertosamsungspl.
Bookmarks