Skip to main content
Skip table of contents

Release pdfOptimizer 4.0.2

Release date: May 15th, 2025

pdfOptimizer is our iText Core add-on to reduce the file size of PDFs.

It provides a range of options for optimizing PDFs, whether you’re generating them with iText or making adjustments afterward processing. One of these ways is to identify duplicated XObjects within PDF streams, such as images. The PDF specification allows for the reuse of images throughout a document—think headers and footers—so you only need to store one instance of the image. In this latest release, we've improved the detection of these duplicate images, which can significantly shrink file sizes in certain cases.

Another way pdfOptimizer can reduce PDF file sizes is font subsetting, which is a nifty way to trim down unused glyphs from embedded font streams. However, we received feedback from a customer who found pdfOptimizer was mistakenly removing extra data when it ran into certain malformed content streams it couldn’t handle properly. With this latest update, even if pdfOptimizer can’t optimize those tricky streams, you can rest assured the original data will be preserved.

Downloads

Changelog

Improvements

  • SVG tags should take into account alternate description when tagged as figure

  • Change how alternative descriptions are applied for widget annotation in PDF/UA-2

Bug fixes

  • Percent height for inline element not resolved correctly in fixed size containers

  • CSS selector with two elements failed

  • NullPointerException when processing HTML and using relayout()

Installation Instructions

Examples (latest ones)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.