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