[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fehler beim Drucken mit cups-pdf



Hallo allerseits,

ich habe hier einen festen Server. Auf dem soll mittels cups-pdf ein PDF 
Drucker angeboten werden (für die Clients im Netz).

Wenn ich lokal (über das Webfrontend von CUPS) eine Testseite auf dem Drucker 
drucke, funktioniert das wunderbar.

Wenn ich aber einen Client konfigurieren möchte, klappt das nicht mehr. Ich 
verwende kcontrol, um den Drucker einzurichten. Dort erstelle ich dann einen 
neuen Drucker, der als CUPS-Drucker auf dem Server läuft - als Treiber wähle 
ich den PostScript-Drucker aus (Generic Postscript Printer foomatic).

Wenn ich eine Testseite rausschicke, wird keine PDF erstellt. Ich finde dann 
in den Logs die Info, dass ghostscript mit 256 beendet wurde (s.u.).

Weiß jemand, was ich machen muss, damit das funktioniert?

Danke schonmal
Christian

PS: Noch eine andere Sache: Kann ich dem Auftrag meine UID mitgeben, so dass 
der die Datei in meinem Home-Verzeichnis korrekt ablegt und ich mir die Datei 
nicht mühsam heraussuchen muss?

> switching to new gid (lpadmin)
> initialization finished (v2.4.8)
> unknown user (remroot)
> trying lower case user name (remroot)
> unknown user (remroot)
> output directory name generated (/srv/pdf)
> user information prepared 
> spoolfile name created (/var/spool/cups-pdf/SPOOL/cups2pdf-28857)
> source stream ready
> destination stream ready (/var/spool/cups-pdf/SPOOL/cups2pdf-28857)
> owner set for spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-28857)
> found beginning of postscript code (%!PS-Adobe-3.0) 
> now extracting postscript code
> found title in ps code ((KDE Print Test))
> found embedded (e)ps code (%!PS)
> found embedded (e)ps code (%!PS-Adobe-3.0)
> found end of embedded (e)ps code (%%EOF) 
> found end of embedded (e)ps code (%%EOF)
> all data written to spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-28857)
> trying to use PS title ((KDE Print Test)) 
> removing trailing newlines from title ((KDE Print Test))
> removing enclosing parentheses () from full title ((KDE Print Test))
> removing special characters from title (KDE Print Test) 
> title successfully retrieved (KDE_Print_Test) 
> input data read from stdin
> output filename created (/srv/pdf/KDE_Print_Test.pdf) 
> ghostscript commandline built (/usr/bin/gs -q -dCompatibilityLevel=1.4
> -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/srv/pdf/KDE_Print_Test.pdf"
> -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode
> -dPDFSETTINGS=/prepress -c .setpdfwrite -f /var/spool/cups-pdf/SPOOL/cups2pdf-28857)
> output file unlinked (/srv/pdf/KDE_Print_Test.pdf) 
> TMPDIR set for GhostScript (/var/tmp) Wed Nov  4 17:15:40 2009 
> [DEBUG] entering child process
> Wed Nov  4 17:15:40 2009  [DEBUG] GID set for current user
> Wed Nov  4 17:15:40 2009  [DEBUG] UID set for current user (nobody)
> Wed Nov  4 17:15:40 2009  [DEBUG] ghostscript has finished (256)
> Wed Nov  4 17:15:40 2009  [ERROR] failed to set file mode for PDF file (non
> fatal) (/srv/pdf/KDE_Print_Test.pdf) Wed Nov  4 17:15:40 2009  [DEBUG]
> ERRNO: 2
> Wed Nov  4 17:15:40 2009  [DEBUG] waiting for child to exit
> Wed Nov  4 17:15:40 2009  [DEBUG] spoolfile unlinked
> (/var/spool/cups-pdf/SPOOL/cups2pdf-28857) Wed Nov  4 17:15:40 2009 
> [DEBUG] all memory has been freed
> Wed Nov  4 17:15:40 2009  [STATUS] PDF creation successfully finished
> (nobody)


Reply to: