Adobe Acrobat optimizer has an Audit Space Usage function that displays the percentage of the file size of each type of component, e.g. images, fonts, etc. See this page for an example.
Is there an open-source tool that does the same thing?
put on hold as off-topic by fixer1234, karel, DavidPostill, Deltik, mdpc yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
I found a program that does this. It is pdfsizeopt.py from this location. I used the command
and got an output like this: