PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 11:39 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: Out of memory
PostPosted: Fri Oct 01, 2010 1:01 pm 
Offline

Joined: Fri Oct 01, 2010 12:45 pm
Posts: 2
Hello guys,

We are using your component in our .Net project.
We use it to generate a single pdf from a group of pdfs that were generated in our application.

The process is this:

- We generate our pdf documents using crystal reports.
- The pdf files are stored in a directory in our network
- Another process analyze every single pdf file in the directory and then we use PDFsharp to group all of them file into a single (and bigger) pdf file.

The thing is we are getting an "out of memory" error while processing the single file.
I must admit it's really big (almost 20.000 pages) and it has a couple of images in every single page of the document as well (2 logos 20k max each).

It seems the component doesn't free the memory while processing the pdf file, we think it's a problem with the images.

The questions are:

- Does PDFSharp support sucha a big file?
- Are there any known bugs related with memory loosing in version: 1.0.898.0 (it's the version of the component we're using)?

Thank you all


Top
 Profile  
Reply with quote  
 Post subject: Re: Out of memory
PostPosted: Mon Oct 04, 2010 7:28 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Michael wrote:
It seems the component doesn't free the memory while processing the pdf file, we think it's a problem with the images.

This is a feature, not a bug: PDFsharp keeps everything in memory in order to quickly create PDF files.
The drawback is: everything must fit into RAM.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Out of memory
PostPosted: Mon Oct 04, 2010 10:17 am 
Offline

Joined: Fri Oct 01, 2010 12:45 pm
Posts: 2
Hello Thomas,

First of all, thank you for answering.

I would like to make another question:

Does the component release the memory after creating the pdf?
Everytime we use the component, it consumes the memory, it doesn't release it, so if we launch the process again, we notice the component consumes more memory resouces (as normal), but it's incremented to the memory used the first time that was never released.

We are still talking about version: 1.0.898.0 of the component.

Any suggestions?

Thank you again.


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 372 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