How to display images in Word generated from HTML?

后端 未结 4 1678
自闭症患者
自闭症患者 2020-12-10 05:55

I\'m currently creating a Word document by generating HTML and changing the header information to display as a .doc file. It\'s a poor man\'s method, but it works just fine

4条回答
  •  鱼传尺愫
    2020-12-10 06:33

    I had the similar problem. I solved it by decoding the Base64 images to disk and creating a link to the images, deploying a servlet in my application to listen to the link pointed by images on disk. Here is the solution I implemented:

    How to convert HTML to well formed DOCX with styling attributes intact

提交回复
热议问题