I am using html2fpdf to export html as a pdf file.
However it is not exporting it as it looks on he page, i.e开发者_运维技巧. without the css.
How can I get it to export the html as it is formatted on the page...?
Try to run the export with the content of a featured example. If it displays correctly, it means that the problem is that your html is not valid.
Another well documented library here : http://html2pdf.fr/en/
And Documentation : http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:accueil
PS: you finally found the way to force download of your file? If so, please come back and accept the answer we provided you.
精彩评论