Skip to main content

A command-line tool for n-upping PDF files (e.g., combining 2 pages into one) for printing purposes.

Project description

pdf-nupper

PyPI

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 file
  • output.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:

  1. Basic usage (default 1x2 layout in portrait mode):

    pdf-nupper input.pdf output.pdf
    
  2. Using landscape mode:

    pdf-nupper input.pdf output.pdf -l
    
  3. Custom layout (2x2 in portrait mode):

    pdf-nupper input.pdf output.pdf -n 2x2
    
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_nupper-0.1.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

pdf_nupper-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page