Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Create TIFs and JPGs from crappy PDFs

Project description

PDF Serenity Now

PDF Serenity Now was born from our increasing contact with annoying PDFs. The biggest culprits are multi-layered PDFs and PDFs with large pictures or graphics embedded in them which take forever to print, if you can get them to print at all. We created the original script to convert these PDFs to a more printer-friendly format (for the KIP series of plotters), namely flattened TIF Group 4.

At this time, it converts a single-page or multi-page PDF to a folder of TIFs. It handles large, crappy, multi-layer PDFs if you have enough RAM. Poppler and Imagemagick do all of the hard work.

In the future it will be smarter about converting, and offer more target formats (JPG, PDF). The ultimate goal is a service where users can upload/submit a crappy PDF and get a nice set of TIFs or JPGs or a fixed PDF returned to them. It will have a control panel where you can monitor and manipulate conversions in progress or in a queue.



Release Date: 2013-01-15

  • Fixed many import and Python3 errors
  • Added command line switch to preserve intermediate PS files (default is delete)
  • Mucho code cleanup and extra error checking

Usage: serenifypdf <pdf_file> [<output_dpi>] [–preserve-ps]


Release Date: 2013-01-14

  • Removed pyPdf since it is a dead project and not Python3 ready.


Release Date: 2013-01-14

  • Changed to a two step conversion process: PDF -> postscript -> TIF
  • Split out serenifypdf, pdfbursttops, and psconverttotif into separate modules
  • Can only convert one PDF (but multiple pages) at a time
  • PS file and TIF file locations are standardized based on PDF file name
  • Removed Python 2.6 and Python 2.7 support (Python 3.2 and 3.3 only now)

Usage: serenifypdf <pdf_file> [<output_dpi>]


Release Date: None

  • Switched to Poppler for splitting PDFs
  • Added pdfbursttops script for splitting PDFs (using Poppler)


Release Date: 2011-09-02

  • Switched to MIT License
  • Added command line argument for DPI
  • Added Python 2.6 compatability


Release date: 2011-09-01

Produce print-quality TIFFs and JPGs from a directory of PDFs.

  • Works on multilayer PDFs and some types of bad vectors
  • Each page of a multipage PDF will become one TIFF
  • tif_dir must exist before running script
  • Hard-coded values for output file format and DPI
  • ImageMagic (convert) must be installed and on your system path

Usage: serenifypdf <pdf_dir> <tif_dir>

Project details

Download files

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

Files for pdfserenitynow, version 0.6.7
Filename, size File type Python version Upload date Hashes
Filename, size pdfserenitynow-0.6.7.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page