pdfsizeopt integration
Javier Gutiérrez Chamorro (Guti) Open source projects
Brought to you by:
nikkho
Could you add the tool pdfsizeopt?
Here is the url:
https://github.com/pts/pdfsizeopt
Thank you. As far as I know, pdfsizeopt required Python runtimes to be installed, so it is not a standalone plugin as FO requires. Am I right?
pdfsizeopt does indeed contain the Python runtime, but the zip is standalone.
It performs optimizations on the pictures into the PDF, which is quite interesting.
Hi again. After a first glance look to pdfsizeopt I see it is mostly a wrapper as FO. It includes pngout and also Ghostcript. Not sure if it will be worth to duplicate both dependencies.
In fact, pdfsizeopt is "only" a wrapper like FO, but there are some interesting differences:
Furthermore I told you before, that cpdf is not free for commercial usage. Since FO contains advertising banners and the possibility to "donate" FO is certainly commercial.
Thus, it could be much better to use qpdf with nearly the same options pdfsizeopt does, if its possible to keep/restore the pdf file ID and version.
qpdf can be found here:
https://github.com/qpdf/qpdf
Thank you so much. qpdf was already added in FO 17.10:
qpdf.exe --compress-streams=y --decode-level=generalized --recompress-flate --compression-level=9 --optimize-images --object-streams=generate
Regarding FO, since ads as well as donation are optional, I would say is not commercial. Indeed you can donate to LibreOffice and no one would say it is commercial.
Last edit: Nikkho 2025-10-07