A scipt to convert Striata statements to PDF

Justin Wernick <>
Curly Tail, Curly Braces


This is a script I wrote to convert the statements that Cell C was sending me that required Striata reader into PDF format for archiving.

Digital Statements

Not too long ago, I signed up for a contract with Cell C. I like to keep records digitally, so when I got to choose between having statements delivered by email or post, I chose email.

When the first email arrived, I was disappointed to find out that they were using something called "Striata Reader". When I reached out to Cell C over Twitter asking why they've chosen this format over one in more widespread use, like PDF, I was told it was for security reasons. Striata's statements are in an encrypted format, but since there isn't a key needed I'm not sure what security this is actually supposed to provide.

Regardless, for my own records, I don't want to try keeping statements in Striata format. I'd much rather keep it in a format that can be opened by open source applications. So the challenge is how do I take these Striata statements, and convert them to PDF?

It's Secretly Just an Html Archive

After a bit of digging, it turns out that Striata format is just HTML wrapped in some sort of archive. If you go for the Linux version of Striata reader here, it has a command line version of the reader, which helps at least. I'm not sure how to script this if you're on a Windows box at the moment. After extracting the HTML, I stick it all into one file and use wkhtmltopdf to make it a pdf.

I named the script on my machine emc-to-pdf because Striata's file extension is .emc.

This script is a bit of a hack that I threw together after a Twitter argument with customer support about file formats. You may need to modify it to suit your environment. It assumes it can do whatever it wants in /tmp/striata-statement/. You have been warned.

# Usage: emc-to-pdf <source> <destination>
# Converts .emc statement in argument one to a pdf with
# Source: The .emc file you want to convert
# Destination: The pdf file you want to create
# WARNING: Assumes /tmp/striata-statement/ does not exist yet

mkdir /tmp/striata-statement
striata-readerc -outdir="/tmp/striata-statement/" $1
cat /tmp/striata-statement/*.html > /tmp/striata-statement/concat.html
wkhtmltopdf /tmp/striata-statement/concat.html $2
rm -r /tmp/striata-statement

If you'd like to share this article on social media, please use this link: https://www.worthe-it.co.za/blog/2016-07-20-striata-reader-script.html

Tag: blog

Related Articles

Backups are a form of Risk Management

I did data backups badly for a long time, and it ended up biting me. In this article, I share my experience of doing it wrong, and some things you should consider when setting up your own backups.

Using Git for Incremental Backups

I've decided to start managing more of my email myself, on my local computer, rather than relying on Gmail to keep it archived forever. This means that I need to backup my email myself. In this article, I share what my considerations were for this and the script I wrote to do it automatically.