Namespace for using iTextSharp CSSResolver classes

会有一股神秘感。 提交于 2019-12-02 02:30:48

It seems that you are mixing two different things. When I see iTextSharp.text.html.simpleparser, I assume that you are using the old HTMLWorker, a class that has been discontinued.

When I look at your code, I see that you are using XML Worker, which requires a separate DLL (itextsharp.xmlworker.dll). The classes you use are in iTextSharp.tool.xml, and have nothing to do with iTextSharp.text.html.simpleparser. You can check this, by downloading the ZIP file and looking at the source code in itextsharp-src-xmlworker.zip.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!