Dear Maintainer,
Runing lp -dPDF all.ps
(http://www.oldlinux.org/Linux.old/Ref-docs/POSIX/all.ps)
produces a blank one-page PDF and the following in
/var/log/cups/cups-pdf-PDF_log:
-- >8 --
Fri Jan 5 13:01:04 2024 [DEBUG] *** Final Configuration ***
Fri Jan 5 13:01:04 2024 [DEBUG] AnonDirName = "/var/spool/cups-pdf/ANONYMOUS"
Fri Jan 5 13:01:04 2024 [DEBUG] AnonUser = "nobody"
Fri Jan 5 13:01:04 2024 [DEBUG] GhostScript = "/usr/bin/gs"
Fri Jan 5 13:01:04 2024 [DEBUG] GSCall = "%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s"
Fri Jan 5 13:01:04 2024 [DEBUG] Grp = "lpadmin"
Fri Jan 5 13:01:04 2024 [DEBUG] GSTmp = "TMPDIR=/var/tmp"
Fri Jan 5 13:01:04 2024 [DEBUG] Log = "/var/log/cups"
Fri Jan 5 13:01:04 2024 [DEBUG] PDFVer = "1.2"
Fri Jan 5 13:01:04 2024 [DEBUG] PostProcessing = ""
Fri Jan 5 13:01:04 2024 [DEBUG] Out = "${HOME}/PDF"
Fri Jan 5 13:01:04 2024 [DEBUG] Spool = "/var/spool/cups-pdf/SPOOL"
Fri Jan 5 13:01:04 2024 [DEBUG] UserPrefix = ""
Fri Jan 5 13:01:04 2024 [DEBUG] RemovePrefix = ""
Fri Jan 5 13:01:04 2024 [DEBUG] OutExtension = "pdf"
Fri Jan 5 13:01:04 2024 [DEBUG] Cut = 3
Fri Jan 5 13:01:04 2024 [DEBUG] Truncate = 64
Fri Jan 5 13:01:04 2024 [DEBUG] DirPrefix = 0
Fri Jan 5 13:01:04 2024 [DEBUG] Label = 1
Fri Jan 5 13:01:04 2024 [DEBUG] LogType = 7
Fri Jan 5 13:01:04 2024 [DEBUG] LowerCase = 1
Fri Jan 5 13:01:04 2024 [DEBUG] TitlePref = 0
Fri Jan 5 13:01:04 2024 [DEBUG] DecodeHexStrings = 1
Fri Jan 5 13:01:04 2024 [DEBUG] FixNewlines = 0
Fri Jan 5 13:01:04 2024 [DEBUG] AllowUnsafeOptions = 0
Fri Jan 5 13:01:04 2024 [DEBUG] AnonUMask = 0000
Fri Jan 5 13:01:04 2024 [DEBUG] UserUMask = 0077
Fri Jan 5 13:01:04 2024 [DEBUG] *** End of Configuration ***
Fri Jan 5 13:01:04 2024 [DEBUG] set new gid: lpadmin
Fri Jan 5 13:01:04 2024 [DEBUG] initialization finished: v3.0.1
Fri Jan 5 13:01:04 2024 [DEBUG] user identified: nabijaczleweli
Fri Jan 5 13:01:04 2024 [DEBUG] output directory name generated: /home/nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [DEBUG] user information prepared
Fri Jan 5 13:01:04 2024 [DEBUG] spoolfile name created: /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] source stream ready
Fri Jan 5 13:01:04 2024 [DEBUG] destination stream ready: /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] owner set for spoolfile: /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] using traditional fgets
Fri Jan 5 13:01:04 2024 [DEBUG] found beginning of postscript code: %!PS-Adobe-3.0
Fri Jan 5 13:01:04 2024 [DEBUG] now extracting postscript code
Fri Jan 5 13:01:04 2024 [DEBUG] found title in ps code: stdin
nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [DEBUG] found end of postscript code: %%EOF
Fri Jan 5 13:01:04 2024 [DEBUG] all data written to spoolfile: /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] trying to use PS title: stdin
nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [STATUS] ***Experimental Option: DecodeHexStrings
Fri Jan 5 13:01:04 2024 [DEBUG] checking for hex strings: stdin
nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [DEBUG] not a hex string, has no start marker: stdin
nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [DEBUG] calling alternate_replace_string
Fri Jan 5 13:01:04 2024 [DEBUG] removing alternate special characters from title: stdin
nabijaczleweli/PDF
Fri Jan 5 13:01:04 2024 [DEBUG] title successfully retrieved: job_67-stdin_nabijaczleweli_PDF
Fri Jan 5 13:01:04 2024 [DEBUG] input data read from stdin
Fri Jan 5 13:01:04 2024 [DEBUG] output filename created: /home/nabijaczleweli/PDF/job_67-stdin_nabijaczleweli_PDF.pdf
Fri Jan 5 13:01:04 2024 [DEBUG] ghostscript commandline built: /usr/bin/gs -q -dCompatibilityLevel=1.2 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="/home/nabijaczleweli/PDF/job_67-stdin_nabijaczleweli_PDF.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] output file unlinked: /home/nabijaczleweli/PDF/job_67-stdin_nabijaczleweli_PDF.pdf
Fri Jan 5 13:01:04 2024 [DEBUG] TMPDIR set for GhostScript: /var/tmp
Fri Jan 5 13:01:04 2024 [DEBUG] waiting for child to exit
Fri Jan 5 13:01:04 2024 [DEBUG] entering child process
Fri Jan 5 13:01:04 2024 [DEBUG] GID set for current user
Fri Jan 5 13:01:04 2024 [DEBUG] supplementary groups set for current user
Fri Jan 5 13:01:04 2024 [DEBUG] UID set for current user: nabijaczleweli
Fri Jan 5 13:01:04 2024 [DEBUG] ghostscript has finished: 256
Fri Jan 5 13:01:04 2024 [DEBUG] file mode set for user output: /home/nabijaczleweli/PDF/job_67-stdin_nabijaczleweli_PDF.pdf
Fri Jan 5 13:01:04 2024 [DEBUG] no postprocessing
Fri Jan 5 13:01:04 2024 [DEBUG] spoolfile unlinked: /var/spool/cups-pdf/SPOOL/cups2pdf-2243
Fri Jan 5 13:01:04 2024 [DEBUG] all memory has been freed
Fri Jan 5 13:01:04 2024 [STATUS] PDF creation successfully finished for nabijaczleweli
-- >8 --
Naturally, the filename and the contents are wrong.
Running
gs -q -dCompatibilityLevel=1.2 -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="tstout.pdf" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f all.ps
produces a working file.
This is a repost of #990210, per request
(which also implied that link is dead, which it isn't,
but this is why I'm attaching a big file).