I was surprised there were no comments before about this, but then I looked for the GitHub organization I found some discussion from 2022 https://news.ycombinator.com/item?id=34104946
I've been using "pdfcpu optimize" as a post-processing step for dynamically generated pdfs for several years now. Simple, well-documented, and fast. I've been very happy with it
This is a great project. It's basically a Swiss army knife style tool, but for PDF files. I've been using it on & off for several years now for various projects.