|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
ilivewithian
Joined: 07 May 2008 Posts: 4
|
Posted: Fri Oct 31, 2008 10:00 am Post subject: Large file size |
|
|
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 |
|
|
gastan
Joined: 18 Oct 2008 Posts: 25
|
Posted: Sat Nov 01, 2008 7:00 pm Post subject: |
|
|
maybe u need to turn compression on. |
|
Back to top |
|
|
ilivewithian
Joined: 07 May 2008 Posts: 4
|
Posted: Mon Nov 03, 2008 8:09 am Post subject: |
|
|
How do I do that?
I thought it was on by default. _________________ My wife the classical singer |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Nov 03, 2008 8:58 am Post subject: |
|
|
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 |
|
|
ilivewithian
Joined: 07 May 2008 Posts: 4
|
Posted: Mon Nov 03, 2008 9:00 am Post subject: |
|
|
Ah, i didn't realise that, thanks. _________________ My wife the classical singer |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Nov 03, 2008 12:10 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|