【发布时间】:2023-05-26 21:56:01
【问题描述】:
我正在使用this example 来显示 HTML Header 和 HTML Footer。
但是当html中有图片元素时(base64)就不行了。
我试过another example。但这并没有使用 ColumnText。
我尝试添加
htmlContext.setImageProvider(new Base64ImageProvider());
或
TagProcessorFactory htmlTagProcessorFactory = Tags.getHtmlTagProcessorFactory();
htmlTagProcessorFactory.removeProcessor(HTML.Tag.IMG);
htmlTagProcessorFactory.addProcessor(new ImageTagProcessor(), HTML.Tag.IMG);
但没有一次尝试成功。
【问题讨论】:
标签: base64 itext html-to-pdf