You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading a pdf generated by Adobe Illustrator the code hangs on a casting error.
This is due to wrong casting from PRIndirectReference to PdfDictionary
Exception in thread "main" java.lang.ClassCastException: class com.lowagie.text.pdf.PRIndirectReference cannot be cast to class com.lowagie.text.pdf.PdfDictionary (com.lowagie.text.pdf.PRIndirectReference and com.lowagie.text.pdf.PdfDictionary are in unnamed module of loader 'app')
at com.lowagie.text.pdf.PdfWriter.addASEvent(PdfWriter.java:2492)
at com.lowagie.text.pdf.PdfWriter.fillOCProperties(PdfWriter.java:2557)
at com.lowagie.text.pdf.PdfStamperImp.close(PdfStamperImp.java:196)
at com.lowagie.text.pdf.PdfStamper.close(PdfStamper.java:246)
To Reproduce
Code to reproduce the issue
Sample Code
Unit-Test
Expected behavior
pdfWriter just goes on without any issue
System (please complete the following information):
OS: [e.g. iOS]
Used Font:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When reading a pdf generated by Adobe Illustrator the code hangs on a casting error.
This is due to wrong casting from PRIndirectReference to PdfDictionary
To Reproduce
Code to reproduce the issue
Expected behavior
pdfWriter just goes on without any issue
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: