arklumpus / VectSharp

A light library for C# vector graphics
GNU Lesser General Public License v3.0
226 stars 22 forks source link

PDF file size #44

Closed patzhu6426 closed 1 year ago

patzhu6426 commented 1 year ago

I don't know why but I notice the size of the PDF file generated by VectSharp is almost doubled comparing to the PDF file generated by iTextSharp. I basically write text and embed some images in the PDF. The difference on the contents is the format of the images. In VectSharp PDF, svg is used. In iTextSharp, png is used. I noticed the size of the svg image files are actually smaller that the png files - almost half of the size. Do you have any idea about what cause the bigger size?

arklumpus commented 1 year ago

Hi! Can you please send me a couple of example files?

patzhu6426 commented 1 year ago

I will verify with more tests.