Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a ~259 MB PDF. I did pdf2ps and ps2pdf. The final size was 45 MB. I don't see any visible difference in quality in any reader. Although, the bookmarks were lost. I tried using pdftk, but it didn't preserve the bookmarks.

pdftk ... update_info

What caused the huge reduction in size? Is there an alternative to preserve the bookmarks and still have the reduced size (preferably linux command-line alternatives)?

share|improve this question

migrated from stackoverflow.com Aug 24 '12 at 21:43

This question came from our site for professional and enthusiast programmers.

Following up on @Dan's answer: different encodings (and compression) could explain the difference. As a simple test, look at the size of either file after compression with gzip. Is the size difference still impressive? –  Henk Langeveld Aug 24 '12 at 22:39

1 Answer 1

up vote 15 down vote accepted

You can try ghostscript with ebook output and the bookmarks seems to be preserved:

gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dPDFSETTINGS=/ebook -sOutputFile=newFile.pdf originalFile.pdf
share|improve this answer
thanks it worked. I used the PDFSETTINGS=/screen. With that option the pdf became 15MB :) Ref: GS Tips –  Vishnu Kumar Aug 25 '12 at 10:28
Forgot to mention, the bookmarks were indeed preserved. But still does anyone have clues on what is getting reduced? –  Vishnu Kumar Sep 4 '12 at 8:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.