PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 12, 2024 12:11 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jul 26, 2011 11:07 am 
Offline

Joined: Tue Jul 26, 2011 10:59 am
Posts: 2
Hi,

Could anyone tell me what compression is chosen when it creates the pdf? Is there a way to push a compression type or is it done automatically?
I'm creating pdfs with only images, and these images are black & white.

How can I know the compression used in the pdf file?
I have read in the forum that PdfSharp uses LZ, but if I open the pdf file with a text editor I can see after "/Filter" the Flate algorithm.

Regards


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 26, 2011 1:58 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!

JPEG images are stored as they are.
Bilevel images (monochrome) will be compressed using FAX encoding (CCITT) and/or LZW encoding.
Other images use LZW encoding (called FlateDecode in PDF).

PDFsharp does not analyse your pictures. If you store bilevel images in a 24 bit format, LZW encoding will be used.
If you convert them to a 1 bit format, CCITT encoding will be used if that creates the smallest possible file (but LZW is better for certain bilevel files).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 26, 2011 2:32 pm 
Offline

Joined: Tue Jul 26, 2011 10:59 am
Posts: 2
Thanks Thomas! That's exactly what I need to know.


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

All times are UTC


Who is online

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