Sunday, 26 February 2012

Python programming for dividing PDF files

Recently, a project I was involved with required me to split a PDF into multiple files. While the pdfpages package of LaTeX could be used to do this, it would be fairly unwieldly. What I wanted was a program that could be used from the command line. A scout around revealed a StackOverflow question that resolved a similar question using python. It was fairly straightforward to modify this code to create a program that did exactly what I needed. The result is hosted on GitHub.

This was my first practical experience with python, and I guess it's testament to the quality of the language's documentation that it didn't take long before I got something useful.

No comments: