PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 04, 2024 7:22 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Handle on Image
PostPosted: Fri Feb 11, 2011 6:49 pm 
Offline

Joined: Thu Nov 25, 2010 4:04 pm
Posts: 7
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();
            }


Top
 Profile  
Reply with quote  
 Post subject: Re: Handle on Image
PostPosted: Mon Feb 14, 2011 9:11 am 
Online
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hello!
GDI+? WPF?
viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Handle on Image
PostPosted: Mon Feb 14, 2011 1:19 pm 
Offline

Joined: Thu Nov 25, 2010 4:04 pm
Posts: 7
Thomas Hoevel wrote:
Hello!
GDI+? WPF?
viewtopic.php?f=2&t=832



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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group