https://github.com/guipenedo/printpdf
Simple script to make my life easier when I need to prepare multiple pdfs for printing.
https://github.com/guipenedo/printpdf
Last synced: 3 months ago
JSON representation
Simple script to make my life easier when I need to prepare multiple pdfs for printing.
- Host: GitHub
- URL: https://github.com/guipenedo/printpdf
- Owner: guipenedo
- License: mit
- Created: 2021-03-10T23:42:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-10T23:44:36.000Z (about 4 years ago)
- Last Synced: 2025-01-20T11:30:39.329Z (4 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# printpdf
Simple script to make my life easier when I need to prepare multiple pdfs for printing.## Requirements
- texlive-extra-utils
- ghostscript## Usage
```
usage: printpdf [-h] [--output OUTPUT] [--gray] [--nup NUP] [--scale] pdfs [pdfs ...]Prepare documents for printing
positional arguments:
pdfs a list of pdf files (ordered) to mergeoptional arguments:
-h, --help show this help message and exit
--output OUTPUT, -o OUTPUT
output file
--gray, -g convert to grayscale
--nup NUP, -n NUP 1, 2 or 4
--scale, -s super scale
```### Options description
- -o is the output file location, defaults to `output.pdf`
- -g will turn the pdf into grayscale
- -n will n-up the image. For example, `-n 4` will yield a 4 pages per sheet pdf
- -s will "aggressively" scale up the pdf up to the margin, useful for wide margin pdfs that you want to n-up## Behaviour
All the pdfs provided are first merged, then, by this order (if selected):
1. scaled
1. converted to grayscale
1. n-upedTo simply merge the pdfs, do not use any additional options.
## Example
Merging 3 pdfs, turning them into grayscale, scaling and n-uping (2 pages per sheet):
```
printpdf -g -s -n 2 problems_fourier_transform_correction.pdf tutorial1-correction-2020-2021.pdf tutorial2-correction-2020-2021.pdf Tutorial_3_corrige.pdf -o tutorials.pdf
```