When completing a contribution, an email can be sent out with an attached PDF called "receipt.pdf". Is it possible to have this PDF printable on the Thank You page? I currently have a sloppy Print Button on my ThankYou.extra.tpl file, but it is not clean because I am using: $('#crm-main-content-wrapper').before('<div id="print-button"><p><a href="javascript:window.print()" class="btn btn-primary">Print</a></p></div>');
, which is basically printing the entire webpage. I also tried the &snippet=2
approach in the URL, but that is also too sloppy for the client.
Does anyone know of how to hook into that PDF generation code and spit it out into the ThankYou template?