signintech / gopdf

A simple library for generating PDF written in Go lang
MIT License
2.58k stars 281 forks source link

SetCompressLevel() is not doing anything at all #156

Open mengstr opened 4 years ago

mengstr commented 4 years ago

It seems like the SetCompressLevel() really doesn't affect the output size at all. For any value between -2 and 9 I always get a 3.2MB file as output in my application. The pdf can actually be compressed very well - if I use an online pdf compressor set at its best quality-setting the file gets reduced to a mere 99KB.

So something is wrong with the implementation of compression in gopdf.

qufo commented 4 years ago

Same issue, no matter what compress level you set. it always output a file with the same size.

DouFuJuShi commented 1 year ago

Has it been resolved?

vantaboard commented 5 months ago

@oneplus1000 can you close this issue if it has been resolved?