Removing image and save file - An error exists on this page. Acrobat may not display the page correctly

I downloaded the evaluation copy and get a temp license. My manage need to prove this is working before they purchase the product.

I am able to remove hyper link and images from a pdf file with Apose.pdf API. But when I save the revised file. a Popup window will show “An error exists on this page, Acrobat may not display the page correctly. Please contact the person who created the pdf document to correct the problem.”

It is related to removing image from pdf because I commented out the removal of hyper link part.

I am using the XImageCollection.Delete(index) and PdfContentEditor.DeleteImage(pageNum, index) Both have the same error message when I save the file. But when I use PdfContentEditor.DeleteImage() with no parameter, it deletes all images will have no issue with no popup. Please advise.

Hi Wendy,


Thanks for using our API’s.

Please share the input PDF file and code snippet which you are using, so that we can test the scenario in our environment. We are sorry for this inconvenience.

Hi Thank you for your support. Here is the zip file included the pdf file in the bin\debug folder. Please look at the code and the file. You will see the popup or error message from the revised file.



Thank you!



Wendy

Hi Wendy,


Thanks for sharing the sample project.

I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNET-41561 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.