Aspose Bookmark Deletion Error

Occurs when there is a parent bookmark whose all child bookmarks are deleted and then going to delete any other bookmark in the pdf.

ErrorMessage:
System.NullReferenceException: Object reference not set to an instance of an object. at Aspose.Pdf.OutlineCollection.Delete(? , String ) at Aspose.Pdf.OutlineCollection.Delete(? , String ) at Aspose.Pdf.OutlineCollection.Delete(? , String ) at Aspose.Pdf.OutlineCollection.Delete(? , String ) at Aspose.Pdf.OutlineCollection.Delete(? , String ) at Aspose.Pdf.OutlineCollection.Delete(? , String ) at

@Moloy74

Thanks for your inquiry.

Would you please share your sample PDF document along with complete code snippet. We will test the scenario in our environment and address it accordingly.