Throw exception number of placed objects is not correct after delete page via Aspose.PDF


When I delete a page of a PDF, an exception was thrown: Number of placed objects is not correct.


void Main()
    var doc = new Aspose.Pdf.Document(@"C:\Users\XCL\Desktop\pdf\source.pdf");
    doc.Optimize(); // If remove this line, it's OK. Because of the page of deleted maybe is too large, so I must to call this line.

Test File

source.pdf (81.7 KB)


We have logged this problem in our issue tracking system as PDFNET-53337. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hello, is there any progress on this task?
When I try this is OK:

	doc.Outlines.Clear();//It seems to be related to bookmarks


We are afraid that the earlier logged ticket has not been yet resolved due to other issue in the queue. We have recorded your concerns and will surely update you as soon as we make some progress towards its resolution. We apologize for the inconvenience.