I'm sorry that I can’t accept the two answers, because I don’t think I could have done it without any help from @Kurt Pfeifle for the specifics of the Mac and just understanding the drivers and file locations. But here is what I did:
Download the source code from codepoet cups-pdf-for-mac-os-x . (For non-macs, you can see http://www.cups-pdf.de/ ). The Readme is very detailed, and if you carefully read all the instructions, it will work, but I had a bit of trouble getting all the parts, so I will definitely tell you what I did in the hope of saving someone else from some trouble. For this, the source directory is called "cups-pdfdownloaddir".
Compile cups-pdf.c contained in the src folder as readme indicates:
gcc -09 -s -lcups -o cups-pdf cups-pdf.c
A warning may appear: ld: warning: option -s is obsolete and being ignored , but for me this is not a problem. Copy the binary to / usr / libexec / cups / backend. You will probably need the sudo , which will prompt you to enter a password. For example:
sudo cp /cups-pdfdownloaddir/src/cups-pdf /usr/libexec/cups/backend
In addition, do not forget to change the access rights to this file - this requires root permissions (700), which can be changed as follows after moving cupd-pdf to the backend directory:
sudo chmod 700 /usr/libexec/cups/backend/cups-pdf
Edit the file contained in / cups -pdfdownloaddir / extra / cups-pdf.conf. In the "PDF Conversion Settings" section, find the line under GhostScript that reads #GhostScript /usr/bin/gs . I did not uncomment it if necessary, but simply added the line Ghostscript /usr/bin/pstopdf . (There should be no pre-cursor # for any of these modifications)
Find a line under GSCall that reads #GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePage\ s=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite \ -f %s Again without a split, under this I added the line GSCall %s %s -o %s %s
Locate the line under PDFVer that reads #PDFVer 1.4 and changes it to PDFVer , spaces or the following characters.
Now save and exit editing before copying this file to / etc / cups with the following command
sudo cp cups-pdfdownloaddir/extra/cups-pdf.conf /etc/cups
Be careful when editing in a text editor, because newlines on UNIX and Mac environments are different and can potentially destroy scripts. You can always use the perl command to remove them, but I'm paranoid and prefer not to deal with it in the first place.
Now you can open the program (for example, Word, Excel, ...) and select "File → Print" and find an available printer called CUPS-PDF. Print this printer and you should find your pdf files in / var / spool / cups-pdf / yourusername / by default.
* In addition, I thought that this could be useful, because it helped me: if something is screwed in accordance with these instructions, and you need to start / get rid of it in order to remove the driver that you need (1 ) (2) remove cups-pdf.conf from /etc/cups/ (3) Go to System Preferences → Print and Fax and Remove CUPS-PDF Printer.
This is how I successfully configured the pdf file / filter for myself, however there is more detailed information and other configuration information contained in the readme file. Hope this helps someone else!
Katie
source share