PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Large PDF size and memory occupation
https://forum.pdfsharp.net/viewtopic.php?f=2&t=555
Page 1 of 1

Author:  vladaz [ 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

Author:  tazbill [ 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.

Author:  Thomas Hoevel [ 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:
viewtopic.php?t=624&mforum=pdfsharp

Author:  Wild Falcon [ 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?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/