TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

This question already has an answer here:

I'm using the package pdfpages to join many PDF documents. Some of them are scanned. Is there an option to reduce quality of those documents in order to make the resulting file size smaller?

share|improve this question

marked as duplicate by Alan Munn, Arun Debray, Sean Allred, Martin Schröder, Christian Hupfer Jan 26 at 23:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

No, not in pdfpages and not natively within pdfLaTeX. pdfLaTeX can only treat the image data as an object that it extracts from one file and embeds in another.

You could do the conversion from within your LaTeX document by issuing an external command (e.g. ghostscript, depending on your operating system and installed software) to first create a low-resolution pdf that is then included with pdfpages, but this would add a fair bit of overhead to each run of pdflatex.

You're possibly better off producing a low-resolution version of the scanned pdf to include. Use your favourite method: a ghostscript incantation, adobe acrobat, an online converter (which probably uses ghostscript), or your scanner settings.

share|improve this answer
Oh and the link that Alan Munn provided in his comment (on the question) has some ways to compress pdfs using ghostscript, but these are mainly about forcing stronger compression, not resampling the jpeg-encoded data streams that are typical in scanned documents. Here is some ghostscript documentation for the pdfwrite device: ghostscript.com/doc/current/Ps2pdf.htm – Andrew Kepert Jan 23 at 23:23

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