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. For example, in a lecture note where each page is a slide, you can use pdf-nupper to fit 4 pages in one sheet.
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
File details
Details for the file pdf_nupper-0.1.2.tar.gz
.
File metadata
- Download URL: pdf_nupper-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c92409871cd563a870f83c3e2f1b91aed7abd3c94f8efffe19c2ca0e81f75dd |
|
MD5 | 7c1e7424de04fc398d25e0dd60ef27f5 |
|
BLAKE2b-256 | 96c2b8c924b29094c703660d853bb158f4728d9b3842aad50d779c63558e2bbe |
File details
Details for the file pdf_nupper-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pdf_nupper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7673dd1d91a01ebe135fd596507e30bf48b9079f49322de2b69fe61b9256db |
|
MD5 | 5b172e8d93fffcd17825b01e9b2f70a5 |
|
BLAKE2b-256 | 5ce280724212bc8e7f3a27de177f6d3eed69d31c0f7ff6f21c191deb46efc24c |