pdf:print_to_pdf
Differences
This shows you the differences between two versions of the page.
pdf:print_to_pdf [2017/04/04 08:16] – created peter | pdf:print_to_pdf [2019/12/01 22:09] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PDF - Print to pdf ====== | ||
- | |||
- | Print to pdf from the command line. | ||
- | |||
- | 1. Install cups and cups-pdf. | ||
- | |||
- | <code bash> | ||
- | apt-get install cups cups-pdf | ||
- | </ | ||
- | |||
- | |||
- | 2. Check which printer is available: | ||
- | |||
- | <code bash> | ||
- | lpstat -p -d | ||
- | |||
- | printer Cups-PDF is idle. enabled since Wed 10 Jul 2013 09:30:05 AM EST | ||
- | |||
- | no system default destination | ||
- | </ | ||
- | |||
- | where: | ||
- | |||
- | * **lpstat** is to show cups status information. | ||
- | * **-p** is to tell lpstat to list all printers available. | ||
- | * **-d** is to show the current default destination. | ||
- | |||
- | |||
- | 3. To print, the **lpr** command is needed: | ||
- | |||
- | <code bash> | ||
- | echo " | ||
- | </ | ||
- | |||
- | where | ||
- | |||
- | * **-P** is to specify the printer name that you want to use. | ||
- | * **-J** is for the output file name. | ||
- | |||
- | The file will be saved in ~/Desktop, but this can be changed in / | ||
- | |||
- | |||
pdf/print_to_pdf.1491293791.txt.gz · Last modified: 2020/07/15 09:30 (external edit)