html2image
0.9
cn.hutool
hutool-all
5.0.6
转换代码
HtmlImageGenerator imageGenerator = new HtmlImageGenerator();
String htmlstr = “<table style=“width: 700px;font-size:16px;font-family: ‘Microsoft YaHei’;” cellpadding=“0” cellspacing=“0”>\n” +
" \n" +
" <th style=“background-color: #f2f2f2;height: 30px;width: 700px; border:1px solid #e6e6e6;b 《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》无偿开源 威信搜索公众号【编程进阶路】 order-top:none;text-align: center;color: #333333;” colspan=“2”>收据\n" +
" \n" +
" <tr style=“width: 700px;”>\n" +
" <td style=“border:1px solid #e6e6e6;border-top:none;text-align: center;color: #666666;height: 30px;” >日期\n" +
" <td style=“border:1px solid #e6e6e6;border-top:none;text-align: center;color: #666666;border-left: