HTML to PDF (by javascript) how can I add css or table?

后端 未结 2 1310
伪装坚强ぢ
伪装坚强ぢ 2021-02-10 06:58

In a project I have convert html file into pdf,than it\'s working fine.But this output not showing css design.Now I need a suggestion how can I add css design with this pdf file

2条回答
  •  遥遥无期
    2021-02-10 07:29

    Hmm! I think this post can give you all you need, with mPDF: how to add css file in mpdf

    With jsPDF I only know about the hard way: http://mrrio.github.io/jsPDF/doc/symbols/jsPDF.html (See Method Summary).

    Hope it helps!

提交回复
热议问题