PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Aug 18, 2017 8:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Jul 03, 2017 10:04 pm 
Offline

Joined: Mon Jul 03, 2017 9:59 pm
Posts: 2
I'm adding an image to my document. I create the image in a temporary file that I try to delete after rending the PDF. However, I'm unable to delete the file because the renderer does not appear to free it after using it. I proved this to myself by adding a breakpoint at the point of calling the RenderDocument() method. Before executing it, I'm able to delete the file. However, after executing it I'm not. Is this a bug, or am I doing something wrong? Thanks.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 04, 2017 6:05 am 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 266
Location: CCAA
Hi!

I assume you are using version 1.32.
Use the latest version of PDFsharp 1.50 instead. Temporary files are no longer needed (if you want to change your code for improved performance) and they are no longer locked after freeing the objects (if you do not want to change your code).

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 05, 2017 2:36 pm 
Offline

Joined: Mon Jul 03, 2017 9:59 pm
Posts: 2
Hello, and thank you! Yes, I'm using v. 1.32 because v. 1.50 is still in Beta. But I'll upgrade in order to gain the functionality I need. Any idea when v. 1.50 will come out as a Release version?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 05, 2017 8:59 pm 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 266
Location: CCAA
redcurry wrote:
Any idea when v. 1.50 will come out as a Release version?
See this post:
viewtopic.php?p=10941#p10941

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], williams3 and 6 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:  
Powered by phpBB® Forum Software © phpBB Group