0

I am currently creating a PDF and am finding it annoying to constantly make a change, download the PDF and then view it from my website. Is there a better way that I create this PDF, which is quicker than this process?

I initially tried just changing the DOMPDF loading line to

$dompdf->stream("", array("Attachment" => false));

This made it so I didn't have to download the PDF, but also redirected me from the page I'm "downloading" the PDF from...

Looking for maybe an extension on VS Code, or perhaps an IDE that can perform this request? Since DOMPDF uses a HTML file to create the PDF, is there a way I can view the HTML document (whilst I'm editing) in a PDF format?

  • I am trying to create a PDF to represent calculated data to a user. I need to make the PDF look good, because it will be a sales tool for customers. However, because I need to constantly edit the HTML which DOMPDF grabs and makes the page a PDF document - I was wondering if there is a tool I can use to view the HTML document live in an A4 format (such as a PDF). If I could do this, it would save having to go through the download and wait process over and over, which eats up at my time. – Columbian Toad Jan 20 '23 at 14:19

0 Answers0