jeudi 18 octobre 2018

Add variables to PDF with Laravel

I currently have a PDF to HTML package installed which works great, but I now need to manually add some variables to this html. Any ideas how?

I've currently added in date into the HTML like so:

 &quot;&gt;Date:&nbsp; <?php date('d-m-Y'); ?>&lt;/p&gt;

Then within my blade file I have:

 html_entity_decode($page->parsed)

Which does render the PDF in html format correctly and looks great, just need to get these variables in now.

So basically I want to know how I can put any kind of PHP variables within the html output the package https://github.com/tonchik-tm/pdf-to-html I'm using to output this HTML, I just can't figure out how to get variables to render.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire