A command-line tool for n-upping PDF files (e.g., combining 2 pages into one) for printing purposes.
Project description
pdf-nupper
pdf-nupper
is a Python command-line tool for merging multiple pages of a PDF into a single page.This is also called 'n-up' (hence the name). This is particularly useful for printing purposes, where you might want to fit multiple pages onto one sheet of paper.
Usage
pdf-nupper input.pdf output.pdf [-l] [-n LAYOUT]
Arguments:
input.pdf
: Path to the input PDF fileoutput.pdf
: Path where the output PDF file will be saved
Options:
-l, --landscape
: Use landscape mode instead of portrait mode-n LAYOUT, --layout LAYOUT
: Layout of the pages (e.g., 2x2, 3x4). Default is "1x2"
Examples:
-
Basic usage (default 1x2 layout in portrait mode):
pdf-nupper input.pdf output.pdf
-
Using landscape mode:
pdf-nupper input.pdf output.pdf -l
-
Custom layout (2x2 in portrait mode):
pdf-nupper input.pdf output.pdf -n 2x2
-
Custom layout in landscape mode:
pdf-nupper input.pdf output.pdf -l -n 2x4
Note: The layout should be specified as "NxM" where N and M are positive integers representing the number of rows and columns respectively.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pdf_nupper-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54006bf84f50cd0e73ec00f8947fd6ea8069f91773e3dacf40db9e701528ba5f |
|
MD5 | 0e56124390a681c3fd86a323f3673b84 |
|
BLAKE2b-256 | e67adc8d921cb84c43f5a643741735e9148daecd07ae4060e112827f7423cefe |