Public bug reported:

When printing to a PDF file (from Firefox), the PDF file is created,
then deleted before the user can access it.

I tried adding info to bug #879172
(https://bugs.launchpad.net/ubuntu/+source/cups-pdf/+bug/879172), but
bug #879172 was closed 3 years ago.

I am encountering this bug in Ubuntu 16.10 x86-64, cups-pdf 2.6.1-21

The appropriate lines in /etc/apparmor.d/usr.sbin.cupsd are:
  capability mknod,
  capability dac_override,
  capability dac_read_search,
  @{HOME}/PDF/ rw,
  @{HOME}/PDF/* rw,

The appropriate line in cups-pdf.conf (attached in its entirety) is:
Out ${HOME}/PDF

The log file, /var/log/cups/cups-pdf_log, contains the following debug output:
Tue Feb  7 12:13:07 2017  [DEBUG] title successfully retrieved 
(235___Bugs___cups-pdf_package___Ubuntu)
Tue Feb  7 12:13:07 2017  [DEBUG] input data read from stdin
Tue Feb  7 12:13:07 2017  [DEBUG] output filename created 
(/local/home/skelem/PDF/235___Bugs___cups-pdf_package___Ubuntu.pdf)
Tue Feb  7 12:13:07 2017  [DEBUG] ghostscript commandline built 
(/usr/bin/ps2pdf -q -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dSAFER 
-sDEVICE=pdfwrite 
-sOutputFile="/local/home/skelem/PDF/235___Bugs___cups-pdf_package___Ubuntu.pdf"
 -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false 
-dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f 
/var/spool/cups-pdf/SPOOL/cups2pdf-27959)
Tue Feb  7 12:13:07 2017  [DEBUG] output file unlinked 
(/local/home/skelem/PDF/235___Bugs___cups-pdf_package___Ubuntu.pdf)
Tue Feb  7 12:13:07 2017  [DEBUG] TMPDIR set for GhostScript (/var/tmp)
Tue Feb  7 12:13:07 2017  [DEBUG] waiting for child to exit
Tue Feb  7 12:13:07 2017  [DEBUG] entering child process
Tue Feb  7 12:13:07 2017  [DEBUG] GID set for current user
Tue Feb  7 12:13:07 2017  [DEBUG] supplementary groups set for current user
Tue Feb  7 12:13:07 2017  [DEBUG] UID set for current user (skelem)
Tue Feb  7 12:13:07 2017  [DEBUG] ghostscript has finished (32256)
Tue Feb  7 12:13:07 2017  [DEBUG] no postprocessing
Tue Feb  7 12:13:07 2017  [DEBUG] spoolfile unlinked 
(/var/spool/cups-pdf/SPOOL/cups2pdf-27959)
Tue Feb  7 12:13:07 2017  [DEBUG] all memory has been freed

** Affects: cups-pdf (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "/etc/cups/cups-pdf.conf"
   
https://bugs.launchpad.net/bugs/1662660/+attachment/4814961/+files/cups-pdf.conf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1662660

Title:
  cups-pdf not creating any output

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-pdf/+bug/1662660/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to