PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Handle on Image http://forum.pdfsharp.de/viewtopic.php?f=2&t=1545 |
Page 1 of 1 |
Author: | matthieugd [ Fri Feb 11, 2011 6:49 pm ] |
Post subject: | Handle on Image |
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(); } |
Author: | Thomas Hoevel [ Mon Feb 14, 2011 9:11 am ] |
Post subject: | Re: Handle on Image |
Hello! GDI+? WPF? viewtopic.php?f=2&t=832 |
Author: | matthieugd [ Mon Feb 14, 2011 1:19 pm ] |
Post subject: | Re: Handle on Image |
Thomas Hoevel wrote: Sorry, WPF. I tried with different formats (JPEG, PNG) file it's the same problem. It's weird because I have others images used in the document and none have this problem. I saw them in Process Explorer come and gone after the rendering. This image is bigger but not so much (116 KB - 1374x1404). Matthieu |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |