Finally broke down and ditched wkhtmltopdf and switched to latex for pdf generation.