How to get pdf attached in print format

How to get pdf attached in print format

What exactly are you looking for?

I attached a PDF to the Sales Invoice and want to display it in the Sales Invoice print format.

Hi,

To customize the print format to display the link to the PDF, you can add a download link for the attached PDF in the Sales Invoice print format. This will allow the attached PDF to be downloaded via the link when printed.

If this isn’t what you’re looking for, please provide more details about your requirements.

I assume you want to print a paper that has a PDF inside it? You can practically make this work if the PDF only includes one page.
Simply iframe/embed your PDF in your print format through a custom HTML Block then

  • Open the web view (the button that says full screen or something like that) to allow the iframe to load the pdf, and after that you can print normally.
  • or, if you have a custom print format, in the HTML section include a to make sure the iframe is properly loaded before the print dialog opens

If you would like to extract it as PDF (So a PDF within a PDF) then I don’t think wkhtmltopdf supports that, however, you can:

  • Print as PDF
  • Replace wkhtmltopdf with chrome headless (check this custom app on github)