unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.5k stars 249 forks source link

[FEATURE]Reduce the size of PDF files containing Chinese, 9MB generated with unipdf but 34KM with other tools #404

Closed schooltech closed 3 years ago

schooltech commented 3 years ago

Hi, I make a pdf file with unipdf, it is just a simple table with Chinese, and the font is microsoft.ttf or Deng.ttf, it works well, but the pdf if so large, it is 9 MB large. I make the same table pdf with other tool and it is just 34 KB, can reduce the size of the pdf file containing Chinese? Thank you.

schooltech commented 3 years ago

sorry, EnableFontSubsetting can reduce the size to 98KB