fixes for print format and workflow attachment with docs. fixes frappe/erpnext#1684 and frappe/erpnext#1681