Password Protected Files in Python

Posted on April 12, 2019 in blog • Tagged with python, pdf, msoffcrypto-tool, pikepdf

When working on a system that processes files, you're likely to run in to password protected files. Particularly in Japan, password-protected pdfs, office files, and zip files are the norm.

I turn down feature requests for zip files due to the possibility of them containing an undefined nested directory structure …


Continue reading

Working with ImageMagick's Wand Python Library

Posted on March 19, 2019 in blog • Tagged with python, python-wand, pdf

Handling images in wand can be deviously tricky, especially when you need a common system-wide resolution.

An example use-case:

I work on a system that sends & receives faxes. It also handles email attachments and draws text on to fixed format images (inquiries, order details, etc.).

Due to the fact that …


Continue reading