简体   繁体   中英

[itext]PdfReader failing on WAS8

all. I am attempting to use iText to get the page count of a PDF file. The code is running from a web service on WAS8.

PdfReader reader = new PdfReader(fileName);
int pageCount = reader.getNumberOfPages();

Very basic. The problem is, as soon as I hit the PdfReader line, it blows up. I get a "Source not found" error and the title bar on the tab says "JavaBeanDispatcher(JavaDispatcher).invokeTargetOperation(Method, Object[]) line: 106".

I imagine this is more of a Java setup issue than an iText issue, but I just can't figure it out. Can anyone help?

I actually figured it out. I was originally including the iText jar file in the project build path. I changed it to include the jar file in the manifest.mf file instead and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM