Optimizing existing PDF results in corrupted document

When the document “Optimize - Before.PDF”, attached to this message, is optimized, the result is a corrupted or broken PDF. I’ve also attached the result file - “Optimize - After.PDF”. When it is opened in Adobe Acrobat after optimization, the first two pages are blank, and the error message “The font ‘TimesNewRomanPS-BoldItalicMT’ contains a bad /BBox.” is presented.



The code we use to optimize is the following:



Dim Document = New Aspose.Pdf.Document(InputFilename)

Document.Optimize()

Document.Save(OutputFileName)



The original document was created using Adlib Software’s PDF converter, and it appears to be using version 1.5 of the PDF standard. We used version 8.6.0.0 of Aspose.Pdf.dll for the testing.



Is there anything that can be done about this? Or anything that we should be doing differently?



Thanks,

Michael Whalen

Hi Michael,

We are sorry for the inconvenience caused. While testing the scenario with the latest version of Aspose.Pdf for NET 8.7.0, We have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-36161 for further investigation and resolution. We will notify you via this forum thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,