iTextPDF Library - Can't find the class “com.itextpdf.text.pdf.PdfAWriter”

喜夏-厌秋 提交于 2020-01-11 12:10:08

问题


Can't find the class "com.itextpdf.text.pdf.PdfAWriter" in latest version of itextpad v5.4.0. I have even tried downloading the extra jars but to no avail.

Any help will be appreciated.


回答1:


I'm the original developer of iText; I made the 5.4.0 release, but I've never heard of itextpad. If you download the release from SourceForge, you'll find PdfAWriter in the extra jar named itext-pdfa-5.4.0.jar.




回答2:


As said by Bruno, PDF/A Libraries are in a different jar file: itext-pdfa.

Here the Maven dependency:

<!-- https://mvnrepository.com/artifact/com.itextpdf/itext-pdfa -->
<dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itext-pdfa</artifactId>
    <version>5.5.13</version>
</dependency>


来源:https://stackoverflow.com/questions/15118163/itextpdf-library-cant-find-the-class-com-itextpdf-text-pdf-pdfawriter

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