Skip to content
David Cumps

PDF Processing

  • Mediargus
  • 2011-2012

PDF Processing is the maintenance and support work I did for Mediargus, the Belgian press-monitoring company, from autumn 2011 through 2012: keeping its internal administration applications and PDF pipeline running, and building a new PDF thumbnail generator on Ghostscript.

Thumbnails from PDF pages. Mediargus needed previews of its PDFs, so I built a console tool for it. The tool walked an input folder and, for every PDF in it, wrote out a JPEG thumbnail of the first page at a configured size and resolution. It called Ghostscript’s native rendering API directly through GhostscriptSharp, a small open-source P/Invoke wrapper I adapted.

One codebase, split up. Mediargus’s applications had lived for years in one large Subversion repository going back to 2008. Through 2011 I helped split it into separate, focused repositories, one of them for the PDF tools, each with its own trunk, branches and tags going forward.

Keeping the rest running. Beyond the new thumbnail tool, most of the job was maintenance: the existing internal administration applications and the various background processors that fed Mediargus’s databases needed to keep running, and I watched over them with Nagios and Cacti. A chain of scheduled tasks parsed the day’s newspaper PDFs, merged the pages into spreads, and ran those through the thumbnail tool. Publishers such as Gazet van Antwerpen, Corelio (De Standaard), Roularta (Trends, Tendances, Moneytalk) and Pressbanking delivered their content every day, and Mediargus passed content on to partners such as LexisNexis, ANP, Sanoma, AMMCO and Lodestar; when a delivery went wrong, I sent it again by hand through the upload jobs.

A support handbook. I wrote every procedure down as I learned it, about thirty pages in my own wiki: redelivering content per publisher or partner, finding out why a customer’s MediaFocus alert e-mail never arrived, restoring deleted searches and deleted users, lifting an embargo, setting up walk-in access for a customer’s e-mail domain, and managing accounts across the Elgg community site and the Oracle database.

Technologies: C# 4.0, WCF, jQuery, ASP.NET MVC 3.0, ASP.NET WebForms, PHP, Windows Services, Resharper, StructureMap, Ghostscript, Oracle, NHibernate, Subversion, Remoting, Nagios, Cacti, SQLite, Tika, log4net, Elgg, DokuWiki.

Geert Van Huychem
David is a great colleague to work with, packed with excellent coding skills in the .NET framework, but at the same time keeping an open mind, very pragmatic and a teamplayer. A real asset to my team.
Geert Van Huychem, Technical Lead, iFrameworx
Kurt Haegeman
David is a creative thinker, backed up with detailed knowledge of the possible means to achieve the desired results.
Kurt Haegeman, Operations Manager, Mediargus nv

You May Also Like