Virtual printer cups-pdf tutorial under Linux

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.