Analyze space usage of PDF document in Linux

1047955 pts.
Tags:
Linux
PDF
Hello, For a presentation, I have to reduce the size of a PDF but keep the quality. Here's my question: I'm having an issue trying to understand the sizes of the different objects (images, text, tables, etc). So if there's one that should be reduced, I can go ahead and do that. I'm using Linux too. Is there a way I can analyze the space usage in the PDF document? Thanks very much!

Answer Wiki

Thanks. We'll let you know when a new response is added.
To determine the size of a file called /bin/grep for example.
Use the du command below
du -h /bin/grep
or the stat command which provide a lot more info
stat /bin/grep
Use the du command with -s (summarize) and -h (human readable format) option to summaries the size of disk space taken by current directory.
If it to large and you need to reduce it but keep the quality there is not a lot you can do. You might want to edit any images and see if you can reduce the resolution a bit or the number of colors in the color pallet.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    Assuming you asked for analyzer tool that can inspects inside a PDF file. For your purpose, you can try peepdf which is here: https://pypi.python.org/pypi/peepdf/0.3.2

    Or can use pdfid which is built-in on kali Linux. However you can download for other Linux flavor also.

    92,110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: