addon.cc: Simplify toPdf() logic. We don't need the class approach because we're not using callbacks because the libwkhtmltox async API isn't exposed yet.