I also tried alternative way by replicating “Standard” print format and straightaway click Print button using the new print format. It is also showing an error.
The standard print working properly.
But once I create New Print Format without do any further changes (Clicking “Try the new Print Format Builder” → Action = Create New), it also throwing error.
Click on the edit format and remove all the fields one by one to see if any field data is causing the issue.
But if the standard print format is causing the issue, then could you please create a new print format with the “is custom” check box checked, and in the html box type the following
<h1>{{doc.name}}</h1>
Save it and go to the document for which you created this print format for and try printing it. If the same error shows up, then it’s probably a wkhtmltopdf installation issue.
it’s been months and now I think i know the cause of this error.
So ERP has 2 Print Format doctype.
old one and new one.
if I use “Open Print Format Builder” (old one), everything works very well.
But if I use “New Print Format”, i will face the error when clicking “Print” button.