View previous topic :: View next topic |
Author |
Message |
vladaz
Joined: 27 Nov 2008 Posts: 1
|
Posted: Thu Nov 27, 2008 9:59 pm Post subject: Large PDF size and memory occupation |
|
|
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 |
|
Back to top |
|
|
tazbill
Joined: 30 Jan 2009 Posts: 2
|
Posted: Thu Feb 12, 2009 6:04 pm Post subject: |
|
|
Bump.
I am having similar issues, except my pages number in the hundreds and am using > 1.1g RAM during file creation. |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Feb 16, 2009 8:33 am Post subject: |
|
|
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:
http://pdfsharp.s3.bizhat.com/viewtopic.php?t=624 _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
Wild Falcon
Joined: 08 Apr 2009 Posts: 4
|
Posted: Wed Apr 22, 2009 8:18 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
|