PDF format error

See if this thread helps. https://discuss.frappe.io/t/pdf-email-problems-thread/11614