which Class or namespace must add for use Class StyleAttrCSSResolver in itextSharp?

ぐ巨炮叔叔 提交于 2019-12-11 02:33:29

问题


I want that use itextSharp for convert html to pdf. and I want have a specific style in my pdf. I want that all pdf files follow a specific CSS class. but I don't know which namespace I must add that complier khnow StyleAttrCSSResolver class? please guide me!


回答1:


That class is located here. Also you need to add a reference to the xmlworker assembly:

PM> Install-Package itextsharp.xmlworker



回答2:


Also available in "Friendly Nuget Packages" now http://www.nuget.org/packages/itextsharp.xmlworker/

PM> Install-Package itextsharp.xmlworker


来源:https://stackoverflow.com/questions/18202418/which-class-or-namespace-must-add-for-use-class-styleattrcssresolver-in-itextsha

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