PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
PDF size is huge! https://forum.pdfsharp.net/viewtopic.php?f=2&t=3289 |
Page 1 of 1 |
Author: | C10B [ Mon Feb 08, 2016 1:37 pm ] |
Post subject: | PDF size is huge! |
Hi, is it possible to inspect a PDF to see why it is so huge? I am appending several pages, each with a couple of small PNG files (with an alpha channel). The source PNGs are a few tens of kb, but the PDF is as large as 90MB! (Even a single page with just 3 images is around 15MB) Happy to send you a PDF to look at. Many thanks |
Author: | C10B [ Mon Feb 08, 2016 2:37 pm ] |
Post subject: | Re: PDF size is huge! |
OK I have a solution. I manually changed the PNG to JPG and used those instead. The file size of the PDF went from 15MB to 600KB, thats 25 times smaller, or 4% of the original size!!!! I think PDFsharp need to review how they handle PNGs! |
Author: | TH-Soft [ Mon Feb 08, 2016 4:42 pm ] |
Post subject: | Re: PDF size is huge! |
C10B wrote: I think PDFsharp need to review how they handle PNGs! I think they can't do that if you don't submit some of your PNG files. There are no problems with the PNG files I have tested.
|
Author: | C10B [ Mon Feb 08, 2016 4:50 pm ] |
Post subject: | Re: PDF size is huge! |
TH-Soft wrote: C10B wrote: I think PDFsharp need to review how they handle PNGs! I think they can't do that if you don't submit some of your PNG files. There are no problems with the PNG files I have tested.I'm very happy to send the PNG, PDF and JPG to the company if they think they will find it useful. But at the moment I'm OK using JPG |
Author: | Thomas Hoevel [ Wed Feb 17, 2016 12:16 pm ] |
Post subject: | Re: PDF size is huge! |
C10B wrote: I think PDFsharp need to review how they handle PNGs! C10B didn't send any of their PNG files yet.For testing I used two PNG files with screen shots, created with MS Paint. The first has a file size of 101.516 bytes. The second has a file size of 128.616 bytes. A Hello World PDF has a file size of 18.024 bytes. The Hello World PDF with the first image has a file size of 102.652 bytes. The Hello World PDF with the second image has a file size of 130.135 bytes. So there is no general problem with the handling of PNG files. If you encounter problems with specific PNG files then please submit samples for investigation. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |