Description of problem: I have installed a cups-pdf-printer (cups-pdf-2.6.1-9.fc22.x86_64) called pdf. But if I print with a2ps to this printer, for example with: a2ps -Ppdf /etc/passwd All seems to work: [/etc/passwd (plain): 1 page on 1 sheet] [Total: 1 page on 1 sheet] sent to the printer `pdf' [2 lines wrapped] but no output appears in the dedicated directory for this pdf printer. The printer itself is OK, because printing to it with "lpr -Ppdf /etc/passwd" is OK! Version-Release number of selected component (if applicable): a2ps-4.14-26.fc22.x86_64 How reproducible: always Steps to Reproduce: 1.a2ps -Ppdf /etc/passwd 2. 3. Actual results: No output is generated in the dedicated output directory Expected results: output is generated in the dedicated output directory Additional info:
The output directory for the cups-pdf printer is "Out ${DESKTOP}/PDF" (in /etc/cups/cups-pdf.conf) where ~/Desktop/PDF is an existing directory. But after printing with a2ps to the printer "pdf" I find the output in pdf files located in ~/Desktop, and not in ~/Desktop/PDF.
Hmm... I cannot reproduce. $ LANG=C a2ps -PCups-PDF /etc/passwd [/etc/passwd (plain): 2 pages on 1 sheet] request id is Cups-PDF-47 (0 file(s)) [Total: 2 pages on 1 sheet] sent to the printer `Cups-PDF' [4 lines wrapped] In /etc/cups/cups-pdf.conf Out ${DESKTOP}/Print LogType 7 In cups-pdf_log Tue Aug 11 09:53:33 2015 [DEBUG] found end of postscript code (%%EOF) Tue Aug 11 09:53:33 2015 [DEBUG] all data written to spoolfile (/var/spool/cups-pdf/SPOOL/cups2pdf-2819) Tue Aug 11 09:53:33 2015 [DEBUG] trying to use PS title (passwd) Tue Aug 11 09:53:33 2015 [DEBUG] removing special characters from title (passwd) Tue Aug 11 09:53:33 2015 [DEBUG] title successfully retrieved (passwd) Tue Aug 11 09:53:33 2015 [DEBUG] input data read from stdin Tue Aug 11 09:53:33 2015 [DEBUG] output filename created (/home/remi/Desktop/Print/passwd.pdf) Tue Aug 11 09:53:33 2015 [DEBUG] ghostscript commandline built (/usr/bin/gs -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/home/remi/Desktop/Print/passwd.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f /var/spool/cups-pdf/SPOOL/cups2pdf-2819) Tue Aug 11 09:53:33 2015 [DEBUG] output file unlinked (/home/remi/Desktop/Print/passwd.pdf) Tue Aug 11 09:53:33 2015 [DEBUG] TMPDIR set for GhostScript (/var/tmp) Tue Aug 11 09:53:33 2015 [DEBUG] waiting for child to exit Tue Aug 11 09:53:33 2015 [DEBUG] entering child process Tue Aug 11 09:53:33 2015 [DEBUG] GID set for current user Tue Aug 11 09:53:33 2015 [DEBUG] supplementary groups set for current user Tue Aug 11 09:53:33 2015 [DEBUG] UID set for current user (remi) Tue Aug 11 09:53:33 2015 [DEBUG] ghostscript succeeded Tue Aug 11 09:53:33 2015 [DEBUG] file mode set for user output (/home/remi/Desktop/Print/passwd.pdf) Tue Aug 11 09:53:33 2015 [DEBUG] no postprocessing Tue Aug 11 09:53:33 2015 [DEBUG] spoolfile unlinked (/var/spool/cups-pdf/SPOOL/cups2pdf-2819) Tue Aug 11 09:53:33 2015 [DEBUG] all memory has been freed Tue Aug 11 09:53:33 2015 [STATUS] PDF creation successfully finished (/home/remi/Desktop/Print/passwd.pdf)
I switched to LogType 7 too in /etc/cups/cups-pdf.conf. After printing /etc/passwd to the pdf printer, seeing the following line in /var/log/cups/cups-pdf_log: ------------------------------ snip ---------------------------------------------- Tue Aug 11 08:09:39 2015 [STATUS] PDF creation successfully finished (/home/backes/Desktop/PDF/job_501-passwd.pdf) ------------------------------- snap --------------------------------------------- But this msg is incorrect: No file /home/backes/Desktop/PDF/job_501-passwd.pdf found, but found ~/Desktop/passwd.pdf Access rights of ~/Desktop/PDF: drwxrwxr-x 2 backes backes 4096 Aug 11 08:10 /home/backes/Desktop/PDF
Full log please, with [DEBUG] line.
(In reply to Remi Collet from comment #4) > Full log please, with [DEBUG] line. How to do this? Using cupsctl --debug-logging was unseccessful!
LogType 7 in cups-pdf.conf should be enough.
Modifying again /etc/cup/cups-pdf.conf ==> sudo grep Log /etc/cups/cups-pdf.conf # Log Settings # ### Key: Log Log /var/log/cups ### Key: LogType #LogType 3 LogType 7 But no file named cups_pdf.log in /var/log/cups after printing to the printer "pdf"
Sorry but definitively cannot understand or reproduce your issue How have you installed cups-pdf ? and created the printer ?
(In reply to Remi Collet from comment #8) > Sorry but definitively cannot understand or reproduce your issue > > How have you installed cups-pdf ? and created the printer ? Sure, since years. But I think I could solve the problem by renaming the printer from "pdf" to "cups-pdf"! The a2ps works flawlessly :-) But: Why the whole things work only if the cups-pdf printer is named "cups-pdf"? Why then system-config-printer allows to rename the printer "cups-pdf" to "pdf"?
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
SAme behaviour in F26
Seems to be fixed in F27