How to add iText into my netBeans project?

对着背影说爱祢 提交于 2019-12-14 03:17:23

问题


Im using Netbeans 8.0.2 and I am trying to give my output as a PDF file. On a quick google search, I learnt iText can help me do it. But how can i import iText package into my project?
How should i import the package that i have downloaded (latest).


回答1:


If your project uses Maven then you simply add iText to your pom.xml.

<dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.8</version> </dependency>

See http://developers.itextpdf.com/itext-java




回答2:


Find itextpdf.jar into http://github.com/itext/itextpdf/releases/latest .zip file and add to project. Also have other jars for import to java project inside the .zip file.

Hope this help.




回答3:


Add your dependency to your pom.xml file and click on project "Resolve Project Problems" -> Resolve...



来源:https://stackoverflow.com/questions/34565883/how-to-add-itext-into-my-netbeans-project

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