Product Version: 9.5.0
Please give a brief summary of your issue:
Version 9.5.0 introduced an issue and still exists in v10.0.0 (using pdfDoc.FlattenAnnotations() method)
Please describe your issue and provide steps to reproduce it:
We use two PDF libraries in our application iText and PDFTron to do pdf manipulations. We use PDFTron only to flatten annotations and iText for anything else. After doing PDF manipulations and flattening the file, the application uses iText lib to compress the file with what is called “Smart Mode” which basically removes duplicate pdf objects (font etc) from the file making it small in size.
This was working without any issues with PDFTron version 188.8.131.525 but after version 9.5.0 it started throwing exception when it is compressed with “Smart Mode” of iText with “Index was outside the bounds of the array.” message.
Please provide a link to a minimal sample where the issue is reproducible:
This record involves 69 documents, currently I am using elimination approach to identify if there is some file that causes this problem. Once I find the file I will provide it here.