Skip to main content

A small utility to generate fairly high resolution preview images of PDFs suitable for viewing or sharing to social media

Project description

pdf2up

A small utility to generate preview images of research papers (e.g. arXiv) suitable for social media (e.g. Twitter)

Installation

To install as a command line tool pdf2up run:

pip install pdf2up

Usage

Run pdf2up input.pdf, optionally with the following flags:

  • -b/--box to specify a crop box for each pre-cropped 2-up page image

    • 4 values: -b 1 2 3 4 gets read as left, top, right, bottom
    • 2 values: -b 1 2 gets repeated as -b 1 2 1 2
    • 1 value: -b 1 = -b 1 1 1 1
  • --all to override the default of 8 pages (4 images, each 2-up)

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

pdf2up-0.0.7.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pdf2up-0.0.7-py3-none-any.whl (4.0 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