This code shows the Attached Fils I guess. But what if you want to actually display the PDF as part of the Print Format?
Like let’s say the Invoice is for T&M and as part of the invoice, time and expenses are being billed. Let’s say the timesheet and the Expenses Statements/Bills are all attached to the Invoice as a PDF. Now you want the PDF generated from ERPNext for the Sales Invoice in the first part and then show the supporting documents to the invoice.
Hi, you can use the Embed HTML Tag to display PDF files in your print format.
Edit: I assume this will work for print, but it will render a white page if you try to export as PDF as wkhtmltopdf might not fully support embed. I may be wrong, but in that case you need to switch your PDF rendering engine to Chrome Headless.