signintech / gopdf

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

SetCompressLevel() is not doing anything at all #156

Open mengstr opened 3 years ago

mengstr commented 3 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 3 years ago

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

DouFuJuShi commented 8 months ago

Has it been resolved?

vantaboard commented 3 weeks ago

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