On 07/20/2018 07:51 PM, L A Walsh wrote:
Does anyone have experience with or use a package(rpm) that can act as printer, and print the result to an Adobe-PDF formatted file?
Looking for something like Adobe's "Pdf-printer" software that they used to sell...that would act as an installed printer on Windows -- that you just printed to -- and a popup would ask for the name of the file for it to save-to, but that would run on linux.
Thanks, Linda
Linda, There are several ways to approach this. Most boil down to sending a postscript file to cups when then provides a pseudo-printer that calls ps2pdf on the input and saves the result a file (and it does a very, very good job) The package is 'cups-pdf' and and is available in Main OSS repo. (use this option first, it automates what you can do manually) The documentation is good for cups-pdf and the generated pdf usually end up in /var/spool/cups-pdf which you can softlink as required. I also have this setup manually via samba and a shell script on an old install and the printer shared via a samba printer over the lan. You simply create a shared printer, choose any old color-postscript printer to use as the printer driver and share the printer via cups/samba (old Apple and HP drivers color postscript drivers work well). The samba share for something like this is: [pdf-gen] comment = PDF Generator print-pdf path = /var/tmp printable = Yes print ok = Yes printing = bsd print command = /usr/share/samba/scripts/print-pdf "%s" "%H/pdf" "//%L/%u" "%m" "%I" "%J" & lpq command = /bin/true lprm command = lprm -P'%p' %j (newer samba will complain about `printing=bsd`, but it works fine and I haven't taken the time to reconfigure this old box) The destination "%H/pdf" will output the pdf in the user's $HOME/pdf directory. The script itself, /usr/share/samba/scripts/print-pdf, is pasted at http://paste.opensuse.org/16628214 if you want to go that route. Either way works, but the cups-pdf is the standard now. This will give you print to pdf from any application than can use a cups printer. (which is basically everything, you can even use lpd to send to the printer) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org