Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Neither Ghostscript nor PDFTK are able to analayze space usage for different categories of page objects and resources. An answer like the above would be completely useless even if Ghostscript or PDFTKcould indeeddo what's required ...unless it also gave a detailed commandline which would achieve what Bernard asked for.