Public bug reported: Binary package hint: cups-pdf
In /etc/cups/cups-pdf.conf is TitlePref set to 0. ### Key: TitlePref ## where to look first for a title when creating the output filename ## (title in PS file or title on commandline): ## 0: prefer title from %Title statement in the PS file ## 1: prefer title passed via commandline ### Default: 0 TitlePref 0 Since upgrade to karmic koala all PDF file have the same name an get overwritten. Name is: smbprn_00000001_Remote_Downlevel_Document.pdf As workaround we use "Label 1" in the config. It prefix the filename with a uniqe job-id. In /var/log/cups/cups-pdf_log i can find: Thu Jan 14 15:21:31 2010 [DEBUG] now extracting postscript code Thu Jan 14 15:21:31 2010 [DEBUG] found end of postscript code (%%EOF) Thu Jan 14 15:21:31 2010 [DEBUG] all data written to spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-30878) Thu Jan 14 15:21:31 2010 [DEBUG] trying to use PS title () Thu Jan 14 15:21:31 2010 [DEBUG] removing trailing newlines from title () Thu Jan 14 15:21:31 2010 [DEBUG] removing special characters from title () Thu Jan 14 15:21:31 2010 [DEBUG] empty PS title, using commandline title (smbprn.00000001 Remote Downlevel Document) Thu Jan 14 15:21:31 2010 [DEBUG] removing trailing newlines from title (smbprn.00000001 Remote Downlevel Document) Thu Jan 14 15:21:31 2010 [DEBUG] removing special characters from title (smbprn.00000001 Remote Downlevel Document) Thu Jan 14 15:21:31 2010 [DEBUG] title successfully retrieved (smbprn_00000001_Remote_Downlevel_Document) Thu Jan 14 15:21:31 2010 [DEBUG] input data read from file (/var/spool/cups/d14278-001) Thu Jan 14 15:21:31 2010 [DEBUG] output filename created (/home/myuser/cups-pdf/smbprn_00000001_Remote_Downlevel_Document.pdf) Thu Jan 14 15:21:31 2010 [DEBUG] ghostscript commandline built (/usr/bin/gs -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/home/myuser/cups-pdf/smbprn_00000001_Remote_Downlevel_Document. pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c save pop -f /var/spool/cups-pdf/SPOOL/cups2pdf-30878) Thu Jan 14 15:21:31 2010 [DEBUG] output file unlinked (/home/myuser/cups-pdf/smbprn_00000001_Remote_Downlevel_Document.pdf) The line which says "empty PS Title is wrong. In the file is a %Title statment. Lines looks like this: %!PS-Adobe-3.0^M%%Title: samba mit cups, Druckerwart...^M %%Creator: PScript5.dll Version 5.2.2^M %%CreationDate: 1/14/2010 11:10:58^M %%For: myuser^M %%BoundingBox: (atend)^M %%Pages: (atend)^M %%Orientation: Portrait^M %%PageOrder: Special^M %%DocumentNeededResources: (atend)^M %%DocumentSuppliedResources: (atend)^M %%DocumentData: Clean7Bit^M %%TargetDevice: (HP Color LaserJet 8500) (3010.107) 0^M %%LanguageLevel: 3^M %%EndComments^M ^M %%BeginDefaults^M %%PageBoundingBox: 12 12 582 829^M %%ViewingOrientation: 1 0 0 1^M %%EndDefaults^M ^M ^M %%BeginProlog^M %%BeginResource: file Pscript_WinNT_ErrorHandler 5.0 0^M lsb_release -rd Description: Ubuntu 9.10 Release: 9.10 apt-cache policy cups-pdf cups-pdf: Installiert: 2.5.0-8ubuntu1 Kandidat: 2.5.0-8ubuntu1 Versions-Tabelle: *** 2.5.0-8ubuntu1 0 500 http://de.archive.ubuntu.com karmic/universe Packages 100 /var/lib/dpkg/status In the previous release cups-pdf was able to read %Title out of th PS files and create a appropriate filename. In the karmic koala release it does not. ** Affects: cups-pdf (Ubuntu) Importance: Undecided Status: New -- All created pdf file have the same name https://bugs.launchpad.net/bugs/507499 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs