itextsharp html转成pdf 特殊符号异常处理

it2022-05-05  155

项目中使用html转成pdf ,遇到包含& 特殊字符就会出错。

比如:<p>&</p>使用该html输出成pdf就会报异常

解决方案:需使用html转义符<p>&</p>来生成

转载于:https://www.cnblogs.com/liyujun1988/p/8616803.html

相关资源:itextsharp实现html转Pdf和图片.zip

最新回复(0)