Py-stapler

Jul 20, 2023

Manipulate PDF documents from the command line

Stapler is a pure Python alternative to PDFtk, a tool for manipulating PDF documents from the command line. Like pdftk, stapler is a command-line tool.

With the select command, you can cherry-pick pages from pdfs and concatenate them into a new pdf file.

The delete command works almost exactly the same as select, but inverse. It uses the pages and ranges which you didn’t specify.

The split command splits the specified pdf files into their single pages and writes each page into it’s own pdf file.

With the zip command, you can cherry-pick pages from pdfs like select. The pages from each pdf are merged together in an interleaving manner. This can be used to collate a pdf with odd pages and a pdf with even pages into a single file.

The info command shows information on the metadata stored inside a PDF file.

WWW https//github.com/hellerbarde/stapler



Checkout these related ports:
  • Yatex - Yet Another LaTeX mode and html mode on Emacs
  • Xtexsh - Tcl/Tk-based simple TeX interface
  • Xreader - Multi-format document reader
  • Xpp - X11-based printer manager for CUPS
  • Xpdfopen - Command line utility for PDF viewers
  • Xmbibtex - Reference manager based on the BibTeX file format
  • Xfce4-print - Print system support for the Xfce Desktop
  • Utopia - Adobe Utopia typeface for Groff
  • Typetools - Tools for manipulating fonts
  • Txtbdf2ps - Translator TXT + BDF to PS
  • Ttfquery - FontTools-based package for querying system fonts
  • Ttfautohint - Automatic font hinting library
  • Ttf2pt1 - True Type Font to Postscript Type 1 Converter
  • Trueprint - Print program listings on postscript printer
  • Transfig - Tools to convert Xfig .fig files