PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu May 02, 2024 9:56 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Large file size
PostPosted: Fri Oct 31, 2008 10:00 am 
Offline

Joined: Wed May 07, 2008 1:25 pm
Posts: 4
I'm using reporting services to generate pdf files, they have images and tables and a bunch of other bits.

I heard that PDFsharp was much better at saving pdf files and producing smaller files, however when I saved the files using PDFSharp the files ended up twice the original size.

Has anyone got any ideas why this might happen?

Thanks

_________________
My wife the classical singer


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Nov 01, 2008 7:00 pm 
Offline
Supporter

Joined: Sat Oct 18, 2008 4:15 pm
Posts: 50
maybe u need to turn compression on.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 03, 2008 8:09 am 
Offline

Joined: Wed May 07, 2008 1:25 pm
Posts: 4
How do I do that?

I thought it was on by default.

_________________
My wife the classical singer


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 03, 2008 8:58 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
The debug build creates (by default) "verbose" PDF files to make them more readable to humans.
The release build creates compact PDF files.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 03, 2008 9:00 am 
Offline

Joined: Wed May 07, 2008 1:25 pm
Posts: 4
Ah, i didn't realise that, thanks.

_________________
My wife the classical singer


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Nov 03, 2008 12:10 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
The line that makes the difference is in class PdfWriter:
Code:
#if DEBUG
      layout = PdfWriterLayout.Verbose;
#endif

I'm afraid there is no way to change this behaviour at runtime.
Remove this line if you want compact PDF files even with the DEBUG build.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 92 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