Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'CUPS-PDF - A free virtual PDF printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CUPS-PDF - A free virtual PDF printer
Authored by: SFJeep on Oct 12, '09 12:27:04PM

I was able to get this working for 10.6 by using different directories.

Instead of

Out /Users/Shared/Cups_PDF

AnonDirName /Users/Shared/Cups_PDF/Anonymous
I used

Out /var/spool/cups-pdf

AnonDirName /var/spool/cups-pdf
You could also have a subdirectory of /var/spool/cups-pdf to match the printer name. Of course, ensure that permissions are set appropriately for whatever directory you specify here.

[ Reply to This | # ]
CUPS-PDF - A free virtual PDF printer
Authored by: JLG on Oct 26, '09 03:19:41PM

This is the way to go. Apparently Snow Leopard is VERY restrictive when it comes to where it allows this printer driver to write files.

Edit /etc/cups/cups-pdf.conf and put a "#" in front of any "Out" or "AnonDirName" entry (thus commenting them out). The default cups-pdf values (pointing to /var/spool/cups-pdf) will work best here.

Create the cups-pdf printer.

Print a test job to your new printer.

Run the following command:
sudo ln -s /var/spool/cups-pdf/username /Users/username/cups-pdf
(replacing "username" with your username)

Now, you should be able to see your PDF files in the "cups-pdf" folder in your home directory.



[ Reply to This | # ]
CUPS-PDF - A free virtual PDF printer
Authored by: jatilano on Feb 11, '10 10:12:14AM
CUPS-PDF v 2.5.0 is out and it works great in Snow Leopard. Download v 2.5 from http://freshmeat.net/projects/cupspdf/.
cd /Users/username/Downloads/cups-pdf-2.5.0/src
Compile cups-pdf in the /src directory of the downloaded folder using gcc -O9 -s -o cups-pdf cups-pdf.c
Copy the compiled code sudo cp cups-pdf /usr/libexec/cups/backend/cups-pdf The instructions state to install to /usr/lib/cups/backend which is wrong. You need to install to /usr/libexec/cups/backend
Ensure you sudo chmod 0700 /usr/libexec/cups/backend/cups-pdf
Per the instructions you will need to edit cups-pdf.conf. Edit the following lines in the .conf file:
  • GhostScript /usr/bin/pstopdf
  • GSCall %s %s -o %s %s
  • PDFVer
    Copy the edited cups-pdf.conf file to /etc/cups.
    All of your PDFs will be saved to /var/spool/cups-pdf/username As mentioned above, creating a symlink to /var/spool/cups-pdf/ to my desktop worked perfectly. sudo ln -s /var/spool/cups-pdf/username /Users/username/Desktop/CUPS-PDFs
    I also created a desktop PDF printer by option-dragging the printer to my desktop. Now I can just drag a stack of files onto the desktop printer and they are converted to PDFs and easily accessed in a folder on my desktop.

    [ Reply to This | # ]
  • CUPS-PDF - A free virtual PDF printer
    Authored by: JHPArizona on Apr 22, '10 05:30:02PM

    I could not compile the source code :(
    I am running Leopard with X Code version 3.1.4
    I get 169 errors and 58 warnings :(

    However, I did use the posting here to edit the /etc/cups/cups-pdf.conf to make it work!

    Thanks for the postings.

    Jim



    [ Reply to This | # ]
    CUPS-PDF - A free virtual PDF printer
    Authored by: Don.a.dio on Mar 03, '10 02:30:37AM

    These instructions did the trick, thank you so much! Creating the alias is really helpful as well.
    I finally got it to work!



    [ Reply to This | # ]
    CUPS-PDF - A free virtual PDF printer
    Authored by: Sven G on Mar 06, '10 03:55:10AM

    This worked perfectly, both in Snow Leopard and Leopard (PPC). BTW, you can also copy the provided CUPS-PDF PPD to its location, as described in the source Read Me: "In case you want to use the color PostScript driver that comes with CUPS-PDF go to the extra/ subdirectory and copy CUPS-PDF.ppd to your CUPS model directory (usually /usr/share/cups/model [ /Generic ] )." This will show up as "Generic CUPS-PDF Printer" when setting up the printer in System Preferences.



    [ Reply to This | # ]