问题
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