OpenSuSE PDF Printer
Download the Files
Printing to PDF used the cups-pdf module. This comes by default in Fedora, but is not in any of the main sources in openSUSE at all. so you will need to download the files;
http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/cups-pdf_2.4.5.tar.gz
Download and decompress the archive.
All of these instructions are in the readme file - hopefully, this is just a little nicer to read.
Compile and Copy the Files
here is what we are doing
1. goto source directory
2. compile the source
3. copy to cups backend
4. copy the config file - default values usually work fine
5. copy the postscript colour printer
6. set permissions
here is the code (run as root)
cd /some/path/cups-pdf-2.4.5/src
gcc -O9 -s -o cups-pdf cups-pdf.c
cp cups-pdf /usr/lib/cups/backend
cp ../extra/cups-pdf.conf /etc/cups/
cp ../extra/PostscriptColor.ppd /usr/share/cups/model
chmod 700 /usr/lib/cups/backend/cups-pdf
chown root /usr/lib/cups/backend/cups-pdf
Note: for 64 bit systems cups-backend is located in /usr/lib64/cups/backend:
cd /some/path/cups-pdf-2.4.5/src
gcc -O9 -s -o cups-pdf cups-pdf.c
cp cups-pdf /usr/lib64/cups/backend
cp ../extra/cups-pdf.conf /etc/cups/
cp ../extra/PostscriptColor.ppd /usr/share/cups/model
chmod 700 /usr/lib64/cups/backend/cups-pdf
chown root /usr/lib64/cups/backend/cups-pdf
PostscriptColor.ppd
The file "PostscriptColor.ppd" is a modified version of the "Postscript.ppd.gz" that comes with CUPS 1.1.15 that is able to handle color output.
Install the printer
1. goto add new printer
2. select detected printer
3. vendor = generic
4. model = postcript colour
Other method :
1°) Open cups administration ( http://localhost:631/admin )
2°) In the NEW PRINTER FOUNDItalic text section, click on the button Add this printer ( Virtual PDF Printer (CUPS-PDF)Italic text )
3°) in the next screen MAKE/MANUFACTURER FOR CUPS-PDFItalic text , don't select a printer but in the OR Provide a PPD FileItalic text section provide the name of the driver by browsing to "/usr/share/cups/model/PostscriptColor.ppd" Then click on the add printer buttonItalic text
Configuration Options
PDF location
The default location for the PDF files is
/var/spool/cups-pdf/yourname/
to change this edit the /etc/cups/cups-pdf.conf file. In this case, to the Desktop of the user.
Out /home//Desktop
Printing to PDF under KDE
Using any KDE application (Konqueror, Kword, Kwrite etc.) the print dialog will offer the option to print to PDF. Hit Ctrl+P and in the printer combo box select Print to PDF
After you've printed, you'll find your PDF file located in /var/spool/cups-pdf/username/filename.p


Kommentare
Noch keine Kommentare für diesen Eintrag vorhanden