Add image in header using html-pdf node module

后端 未结 6 1590
深忆病人
深忆病人 2021-02-13 23:28

I am using this to convert the html to PDF.The conversions are really good.But the problem is to add header and footer in the PDF pages.In the options if i add the header text i

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 23:58

    I found a simple and easy way to do it and you can put your image source path into your HTML.

    like this

    This will work successfully to load the images and also CSS I think so. Hopefully, this is helpful for other people.

提交回复
热议问题