PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Large file size

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
ilivewithian



Joined: 07 May 2008
Posts: 4

PostPosted: Fri Oct 31, 2008 10:00 am    Post subject: Large file size Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
gastan



Joined: 18 Oct 2008
Posts: 25

PostPosted: Sat Nov 01, 2008 7:00 pm    Post subject: Reply with quote

maybe u need to turn compression on.
Back to top
View user's profile Send private message
ilivewithian



Joined: 07 May 2008
Posts: 4

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

How do I do that?

I thought it was on by default.
_________________
My wife the classical singer
Back to top
View user's profile Send private message Visit poster's website
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Nov 03, 2008 8:58 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
ilivewithian



Joined: 07 May 2008
Posts: 4

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

Ah, i didn't realise that, thanks.
_________________
My wife the classical singer
Back to top
View user's profile Send private message Visit poster's website
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Nov 03, 2008 12:10 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com