This shows you the differences between two versions of the page.
cs:double_sided_printing [2020/04/13 01:16] paolo_bolzoni created |
cs:double_sided_printing [2020/04/14 01:05] (current) paolo_bolzoni Add the commands to do the various actions |
||
---|---|---|---|
Line 4: | Line 4: | ||
It is still necessary to print documents. Many printers are able to print one side of the sheets, here I describe the procedure to print both side correctly. The procedure depends on the kind of printer. | It is still necessary to print documents. Many printers are able to print one side of the sheets, here I describe the procedure to print both side correctly. The procedure depends on the kind of printer. | ||
+ | |||
+ | ===== How-to ===== | ||
+ | |||
+ | Make an empty .pdf page: | ||
+ | |||
+ | $ echo '' | ps2pdf -sPAPERSIZE=a4 - white.pdf | ||
+ | |||
+ | Add an empty page at the end of a document: | ||
+ | |||
+ | $ pdftk W=white.pdf D=input.pdf cat D W output output_file.pdf | ||
+ | |||
+ | Extract //even//-numered pages from a document (replace the word //even// with //odd// for odd-numered pages): | ||
+ | |||
+ | $ pdftk input.pdf cat 1-endeven output_even.pdf | ||
+ | |||
+ | Reverse the order of pages: | ||
+ | |||
+ | $ pdftk input.pdf cat end-1 output output_reversed.pdf | ||
===== Case 1 ===== | ===== Case 1 ===== | ||
Line 18: | Line 36: | ||
1 WWWW | 1 WWWW | ||
- | In other words, the printed pages face up and the order of the sheets is reversed. | + | In other words, the printed pages end up with the face up and the order of the sheets is reversed. |
==== Procedure ==== | ==== Procedure ==== | ||
- | Ensure the input file has a even number of pages adding a blank page at the end if needed. | + | - Ensure the input file has a even number of pages adding a blank page at the end if needed. |
- | + | - Split the file in even and odd pages. | |
- | Split the file in even and odd pages. | + | - Reverse the order of the even and odd pages file. |
- | + | - Print the reversed even file. | |
- | Reverse the order of the even and odd pages file. | + | - Put the printed sheets back in the printer being careful to align the printing side and top side. |
+ | - Print the reversed odd file. | ||
- | Print the reversed even, and the reversed odd file. |