Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PDF where each page is a full-colored image (it's an artbook). There are 16 pages. One page is completely blank.

The PDF itself is 140 MB. When I extract each image to BMP, the images only take up 30 MB. Lossless compression to PNG yielded 13 MB.

How is it possible that the PDF is 140 MB when the images themselves is (is arguably at worst) 30 MB? Are PDF's using an extremely inefficient way to store image data where each pixel takes up more than 4 bytes?

I like PDF because a lot of applications support it without having to install additional software/plugins, but this I found this quite strange.

I'm not sure if this particular PDF is just a special case.

share|improve this question

what software are you using to "extract" images from pdf?

take in mind that to extract images from pdf at their native resolution you need to use


here you can download binaries for Microsoft Windows and Linux


pdfimages [options] <PDF-file> <image-root>

once you extract images at their full res, you can rightly evaluate the issue you think to have

for colorful images, generally, pdf have only one efficient compression way to keep quality and decrease filesize

the jpeg-2000

so, you need to re-encode the images extracted from pdf with pdfimages with a software able to convert to jpeg-2000 like:

  • imagemagick
  • graphicsmagick
  • many others

then, you need to put these jpeg-2000 encoded images into a pdf, without re-encoding. This can be done both in Microsoft Windows and in Linux (with Wine) with:


share|improve this answer
I am using irfanview which uses ghostscript for the processing. I have not tried creating PDF's myself, but might give is a try to see how my output comes out compared to how the author did it (the PDF is not mine) – MxyL Jan 19 '14 at 19:22

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.