Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting IndexOutOfBoundsException during creation of PdfReader object using filepath for some of the PDF documents in openpdf 2.0.3 #1259

Closed
akashr08 opened this issue Jan 17, 2025 · 1 comment

Comments

@akashr08
Copy link

Hi,

I have some of the PDF documents . When i try to create a PdfReader object using filepath , I am getting the below exception:-
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 16646495 out of bounds for length 6868
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:361)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at com.lowagie.text.pdf.PdfReader.readDocObj(PdfReader.java:1957)
at com.lowagie.text.pdf.PdfReader.readPdf(PdfReader.java:1354)
at com.lowagie.text.pdf.PdfReader.(PdfReader.java:180)
at com.lowagie.text.pdf.PdfReader.(PdfReader.java:167)

This used to work in openpdf version 1.3.30 but after this it's breaking. Even i tried with version 1.3.43 but issue still exists.

@akashr08
Copy link
Author

created issue @1260 as bug and closing this as i have used blank template while creating this ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant