0
我試圖運行this example,但在下面的語句中出現錯誤。我已經添加了與itext最新版本相關的所有庫。爲了在iText中運行ParseHtml8示例,需要什麼jar?
XMLWorkerFontProvider fontProvider = new XMLWorkerFontProvider(XMLWorkerFontProvider.DONTLOOKFORFONTS);
fontProvider.register("resources/fonts/NotoNaskhArabic-Regular.ttf");
CssAppliers cssAppliers = new CssAppliersImpl(fontProvider);
HtmlPipelineContext htmlContext = new HtmlPipelineContext(cssAppliers);
htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());
的錯誤是..? – ItachiUchiha
XMLWorkerFontProvider無法解析爲某個類型。 –
和導入com.itextpdf.tool.xml.XMLWorkerFontProvider; 無法解析爲類型 –