Skip to content

Zverik/a5a4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web interface to pdftk and pdfjam

Those tools are the best for managing PDF pages. But they have two major drawbacks:

  1. PDFjam installs to 430 MB (because of texlive dependency), which is a lot.
  2. They are not available on Windows.

For casual PDF processing it would be nice to have a web service, which receives some PDFs and processes them with those tools. This service was specifically aimed at stitching A5 pages into A4 printer-ready documents.

CGI

The simplest is the CGI interface. It consists of a plain HTML file to be placed anywhere in a document root and of python CGI script for /cgi-bin directory. Check paths to pdftk and pdfjam in the script — and you're ready to go.

Flask application

The web application allows for visualizing PDF pages, using raster images as pages, rearranging and rotating them visually, and producing PDF with pdftk + pdfjam. Run run.py and open http://localhost:5000 to use it.

Author and license

The script was written by Ilya Zverev and published under WTFPL license.

About

Web interface to pdftk and pdfjam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published