Hey everyone,
how I can I reach get_pdf function from server script, please?
Standard call frappe.utils.pdf.get_pdf()
unfortunately returns: TypeError: 'NoneType' object is not callable
I have found workaround: frappe.call('frappe.utils.print_format.report_to_pdf', html = body)
and the the result is saved here: frappe.response.filecontent
But this method makes an error on the client site:
This error interrupts the saving, reloading, etc. of the current doc and it is not good
Thanks for any advice in advance.
Jiří Šír