0

Can we repack a pdf by reducing images' size(in bytes not dimensions) using itext or pdfbox or another java pdf library?

yavuzkavus
  • 1,268
  • 11
  • 17
  • 4
    What you want is to compress every images in given pdf file ? http://stackoverflow.com/questions/20614350/compress-pdf-with-large-images-via-java – Cédric M. Feb 25 '16 at 11:03
  • Neither [tag:itext] nor [tag:pdfbox] do that out of the box but both can be used as PDF framework to retrieve the images, downsize them using an external library, and replace the original image with the downsized one. – mkl Feb 25 '16 at 16:40
  • You'll find a number of command-line tools that do this, if that is an option as well. Downsampling or recompressing images are standard functionality in most PDF preflight tools for example. – David van Driessche Feb 25 '16 at 17:42

0 Answers0