How do I load a full pdf HTML page using DOMPDF?

I used dompdf to download the receipt, which was originally in HTML format. But as soon as it is converted, the orientation and format are distorted. Is there a way to load a pdf HTML page with the same height and width as the HTML page?

+3


source to share


1 answer


No no. Each html-> pdf tool is different. some don't let css some allow html5 but very bad. some allow gif, etc. many options. You shouldn't look for a tool that renders html page and converts to pdf. You should find something like viewing the page and get screenshots of it and print it in pdf format. because today's complex html pages are just too overwhelming for html-> pdf tools. These tools are made for html coders to create fancy PDFs.



Try looking for browser plugins. If you find it, you can automate the process via linux konsole. (fire-fox, maybe chrome isn't sure either though)

0


source







All Articles