The printing problems under Linux, and how cups tools are used, have been described in the previous article and can be stamped here:
Linux Universal Printing System cups tutorial
Here to introduce the virtual printer cups-pdf related installation, so-called cups-pdf, is actually a Linux tool, can be any format of the document, printed into a PDF publication form of the document, in fact, plainly is a PDF converter, It's just the way it's presented through the printer.
First download the Cups-pdf installation package here: http://www.cups-pdf.de/download.shtml
Unzip after download:
TAR-XZVF Cups-pdf-3.0beta1.tar
Go to Catalog
CD Cups-pdf-3.0beta1.tar
We open the Readme to read the tips for the tool:
You can modify the Cp_config_path entry under the Src/cups-pdf.h file to change the installation path
Then compile the installation via GCC:
Gcc-o9-s-lcups-o cups-pdf CUPS-PDF.C
After the installation is complete, you will also need to copy the/extra/cups-pdf.conf to/etc/cups (or the installation path you set yourself), and you can modify the configuration properties of the Cups-pdf by this file.
Of course, we can also set the print through the provided GUI window, here in Ubuntu for example:
Open System Settings-printer can find a printer named Generic-cups-pdf-printer, we right-properties, open the printer settings interface,
Here we can choose the printing strategy, print mode, and so on, number, margin, DPI and so on to select settings. After Setup, use the lp-d command previously mentioned in the article to print the test;
lp-d Generic-cups-pdf-printer Test1.png
The printed PDF file appears in the {home}/pdf directory, and the path can be changed by modifying the/etc/cups-pdf/cups-pdf.conf.
Originally sent in my independent blog: http://www.xgezhang.com/linux_cups_pdf.html
Welcome reprint, please indicate the source
Virtual printer cups-pdf tutorial under Linux