PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 7:03 am

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: Thu Nov 27, 2008 9:59 pm 
Offline

Joined: Thu Nov 27, 2008 9:44 pm
Posts: 1
Hi,
I'm using the PDFSharp to create photo booklets. Each page may contain between 1 and 6 photos, using various templates.
The resulting file with 8 pages of images weights about 60 Megs, while the images themselves in JPEG format all together weight about 1.5 Megs.

In addition, processing a booklet with 60-70 pages and around 160 images hangs my x64 - 4gigs of RAM machine indicating more than 2 gigs allocated by my app.

Is it normal for PDF to be so large?

Thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 12, 2009 6:04 pm 
Offline

Joined: Fri Jan 30, 2009 8:02 pm
Posts: 2
Bump.

I am having similar issues, except my pages number in the hundreds and am using > 1.1g RAM during file creation.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 16, 2009 8:33 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
JPEG files are simply stored inside the PDF file.

DEBUG mode files are bigger than RELEASE mode files because of indentation, linebreaks and comments.
But 60 MB PDF file from 1.5 MB JPEG files? I hardly believe that.

All images are kept in RAM. This can be a problem with many large images.
I don't know if that issue also shows in WPF mode.

See also here:
viewtopic.php?t=624&mforum=pdfsharp

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 22, 2009 8:18 pm 
Offline

Joined: Wed Apr 08, 2009 8:44 pm
Posts: 6
I have similar problem -
program, who generates 16-page PDF from 26 jpeg-s (600-800kb per picture) "eats" 600-1200 MB RAM while generates PDF file.
(debug and release builds give the same results)

Maybe PDFSharp can write PDF on disc by parts, with cleaning RAM resources after writing each part?


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: No registered users and 338 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