How to get number of pages of Portable Collection Pdf using IText or any function using Java
- 阅读更多 关于 How to get number of pages of Portable Collection Pdf using IText or any function using Java
问题 PdfReader reader = new PdfReader(pdfFile, new byte[0]); pages = reader.getNumberOfPages(); Suppose there are two pdfs(Each pdf contains 2 pages) inside portable collection. When i try to get number of pages it returns just 1. I think it is considering cover page of the portable collection document. Is there any way to get number of pages of portable colletion ? I am using Java 11 and IText 5.5 version. 回答1: I found solution for this but i think it is unnecessary to check the below things and