PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with batch processing of PDFs

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
aleripe



Joined: 13 Jan 2009
Posts: 5

PostPosted: Tue Jan 13, 2009 8:29 am    Post subject: Problem with batch processing of PDFs Reply with quote

Hi, sorry for my bad English! Very Happy
I'm trying to apply a stamp (as an image) to a lot composed of 1000 PDFs. My code loops through all the files, opens a new PdfDocument from PdfReader, reads each PdfPage and writes the image using XGraphicsPath before saving the PdfDocument.
The problem is that every 100 files one of them is corrupted: the modified document shows wrong colors or i'm unable to open it. If I apply the stamp only to it everything works properly.
What can I do to avoid this problem?

Thank you for your help! Very Happy
Back to top
View user's profile Send private message
aleripe



Joined: 13 Jan 2009
Posts: 5

PostPosted: Thu Jan 15, 2009 3:27 pm    Post subject: Reply with quote

Any ideas? Very Happy
Back to top
View user's profile Send private message
billy anachronism



Joined: 08 Jan 2009
Posts: 8

PostPosted: Thu Jan 15, 2009 11:35 pm    Post subject: Reply with quote

is it always exactly the 100th that's corrupted?
Back to top
View user's profile Send private message
aleripe



Joined: 13 Jan 2009
Posts: 5

PostPosted: Fri Jan 16, 2009 1:06 pm    Post subject: Reply with quote

billy anachronism wrote:
is it always exactly the 100th that's corrupted?


I can't control now, but It's strongly possible... what could be the problem in this case?
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Jan 19, 2009 9:55 am    Post subject: Re: Problem with batch processing of PDFs Reply with quote

Hi!
aleripe wrote:
What can I do to avoid this problem?

Once a document is finished you should call Dispose for that document.
PDFsharp does some caching (to improve performance). Dispose should free all resources used by a document.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
aleripe



Joined: 13 Jan 2009
Posts: 5

PostPosted: Tue Jan 20, 2009 9:45 am    Post subject: Re: Problem with batch processing of PDFs Reply with quote

Thomas Hoevel wrote:
Hi!
aleripe wrote:
What can I do to avoid this problem?

Once a document is finished you should call Dispose for that document.
PDFsharp does some caching (to improve performance). Dispose should free all resources used by a document.


Oh, thank you! I will give it a try! Smile
Back to top
View user's profile Send private message
aleripe



Joined: 13 Jan 2009
Posts: 5

PostPosted: Tue Jan 20, 2009 10:07 am    Post subject: Re: Problem with batch processing of PDFs Reply with quote

aleripe wrote:
Thomas Hoevel wrote:
Hi!
aleripe wrote:
What can I do to avoid this problem?

Once a document is finished you should call Dispose for that document.
PDFsharp does some caching (to improve performance). Dispose should free all resources used by a document.


Oh, thank you! I will give it a try! Smile


I have released a new version and it seems to work properly!
Thank you for your help and this awesome component!! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com