Hello,
I build a MigraDoc document with Images included and one of them see its handle not being free : when I look my process with Process Explorer I see the handle on this particular image surviving the rendering. Here's the code when I include the image :
Code:
var splash = cover.AddParagraph();
splashImage = splash.AddImage("cover_splash.jpg");
splashImage.LockAspectRatio = true;
splashImage.Width = Unit.FromInch(4.5);
splash.Format.Alignment = ParagraphAlignment.Right;
splash.Format.SpaceAfter = Unit.FromInch(1.55);
My code for the pdf generation:
Code:
using (var pdfDocument = pdfGenerator.GetPdf())
{
pdfDocument.Save(fileName);
pdfDocument.Close();
}