The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Disposing inserted images before saving a document causes an exception. Are images automatically disposed? Or is it necessary to run through the document and check each Paragraphitem for the EntityType.Picture and then disposing the images with Picture.Image.Dispose() ?
BPBhuvaneswari P Syncfusion Team January 30, 2009 09:47 AM UTC
Hi Johannes,
Thank you for your interest in Syncfusion products.
I am able to reproduce the issue "when disposing the image before document save, throwing an exception". The issue reported by you is suspected to be a defect. We have forwarded this to our Development Team for further analysis. We will update you with our Development Team’s response in two business days.
As of now please close the images after document save like below code snippet: document.Save("Sample.doc"); pic.Image.Dispose();//Will dispose only this object //or document.Close();// will release all resources used by this object
Please let me know if you have any other questions.