0
Who ever did pdf with html, css? Content must be generated by server side. What are restrictions on use of html, css?
It seems like there is no CSS3 support like an email. UPD: I am using mpdf lib to generate pdf
2 Answers
+ 2
I worked on a project a little while back where I had to generate PDFs from HTML. Used every library I could find online for PHP and for JS and none of them achieved exactly what I needed and all had little bugs and issues with images and css.
I also needed to generate PDFs on the fly so couldn't rebuild html PDF structure each time.
In the end I wrote an application using node JS and hosted it for free for anyone to use. It also has basic API support for PHP. This tool will take any URL and converts it to a dynamic PDF for you taking fonts and styles from the CSS sheet or in-line styling.
Try my tool and if you have any issues just let me know.
https://url2pdf.it
0
Thanks a lot! Found some css hacks, now using them. If someone will try mpdf, here is some docs: https://mpdf.github.io/css-stylesheets/supported-css.html. Now deadline is pressing, I'l try your lib.