Juanito


Group: Members
Posts: 1601
Joined: Sep. 2005 |
 |
Posted: April 08 2008,14:17 |
 |
Now the new cups extension is out the door, I seem to be making some progress on having a "pdf printer" available in cups using cups-pdf.
The pdf printer is automatically recognised by cups, the test page passes out of cups to cups-pdf, but appears to fail at the final hurdle due to some sort of permissions "issue".
If I examine the cups error_log and cut & paste the gs command from the middle of all the yada-yada to a terminal window, it will convert a ps file to pdf. If I try to paste the output to the cups-pdf spooler it fails:Code Sample | $ gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/home/dsl/test.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f /home/dsl/test.ps
[works OK]
$ gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/var/spool/cups-pdf/dsl/test.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f /home/dsl/test.ps **** Unable to open the initial device, quitting.
$ ls -l /var/spool drwx--x--- 3 root staff 80 Apr 8 16:28 cups drwxr-xr-x 5 root root 120 Apr 8 16:36 cups-pdf
$ ls -l /var/spool/cups-pdf drwxr-x--x 2 root staff 60 Apr 8 16:41 SPOOL drwx------ 2 dsl staff 60 Apr 8 16:36 dsl drwx------ 2 root root 60 Apr 8 16:31 root |
Note that my understanding of the normal process is that the print is spooled as a ps file in /var/spool/cups-pdf/SPOOL and then processed to /var/spool/cups-pdf/{user}/*.pdf
Any ideas?
|