When I delete a page of a PDF, an exception was thrown: Number of placed objects is not correct.
Code
void Main()
{
var doc = new Aspose.Pdf.Document(@"C:\Users\XCL\Desktop\pdf\source.pdf");
doc.Pages.Delete(2);
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.
doc.Save(@"C:\Users\XCL\Desktop\pdf\target.pdf");
}
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.
We are afraid that no updates are available yet about ticket resolution. However, we will surely inform you once we have some news about ticket resolution or fix ETA. We apologize for the inconvenience.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.