Skip to main content

Manipulate PDF and PostScript documents

Project description

PDF and PostScript Utilities

Web site: https://github.com/rrthomas/psutils
Maintainer: Reuben Thomas rrt@sc3d.org

PSUtils is a suite of utilities for manipulating PDF and PostScript documents. You can select and rearrange pages, including arrangement into signatures for booklet printing, combine multple pages into a single page for n-up printing, and resize, flip and rotate pages.

PSUtils is distributed under the GNU General Public License version 3, or, at your option, any later version; see the file COPYING. (Some of the input files in the tests directory are not under this license; see the file COPYRIGHT in that directory.)

If you simply want to use PSUtils, you will find it in most GNU/Linux distributions; it is available in brew for macOS and Cygwin for Windows.

PostScript files should conform to the PostScript Document Structuring Conventions (DSC); however, PSUtils intentionally does not check this, as some programs produce non-conforming output that can be successfully processed anyway. If PSUtils does not work for you, check whether your software needs to be configured to produce DSC-conformant PostScript.

Some old Perl scripts, which mostly fix up the output of various obsolete programs and drivers to enable PSUtils to process it, are available in git in the old-scripts directory. They are not supported, and their use is discouraged, unless you know you need them!

Installation

The easiest way to install PSUtils is from PyPI, the Python Package Index:

pip install pspdfutils

(Note the PyPI package name!)

Installation from source or git

PSUtils requires Python 3.9 or later, a handful of Python libraries (listed in pyproject.toml, and automatically installed by the build procedure), and libpaper, which allows named paper sizes to be used and configured:

libpaper: https://github.com/rrthomas/libpaper

In the source directory: python -m build (requires the build package to be installed).

Note that to use the scripts before installing them, you need to run them as Python modules; for example:

PYTHONPATH=. python -m psutils.command.psnup -2 foo.ps

Bugs

Please send bug reports, patches and suggestions to the bug tracker or maintainer (see the top of this file).

Acknowledgements

PSUtils is written and maintained by Reuben Thomas. Version 1 was written by Angus Duggan.

psselect in modeled on Chris Torek's dviselect, as is psbook, via Angus Duggan's dvibook; pstops is modeled on Tom Rokicki's dvidvi. psjoin was originally written by Tom Sato.

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

pspdfutils-3.1.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pspdfutils-3.1.2-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

Details for the file pspdfutils-3.1.2.tar.gz.

File metadata

  • Download URL: pspdfutils-3.1.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/6.8.0 keyring/24.2.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for pspdfutils-3.1.2.tar.gz
Algorithm Hash digest
SHA256 51c7f9c9e8f3447242621f1499de8e151bf8e464e6af845be14eef2bd885fd4c
MD5 1891d962c0196bbaf05e69359f343b1b
BLAKE2b-256 f6083be8ccd5d45d4c0d07d7511948b45d564c892925869ad3e854d6ff15e299

See more details on using hashes here.

File details

Details for the file pspdfutils-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: pspdfutils-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/6.8.0 keyring/24.2.0 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for pspdfutils-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab261b48414cb817157e37c3cb25c72b0a678a504b2836b2e51535b2e0b7c364
MD5 49e5c025536fc95b52218cb4d97f78d2
BLAKE2b-256 6b1d4205117fbb75d1ddf359cfea91108ab619c39f8d1186a452948cc03a69ba

See more details on using hashes here.

Supported by

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