Toolkit 9.1.0 includes a new Compressor object. The Compressor object uses text, image, and object compression to reduce file size. The Compressor object also offers optimization settings to further reduce file size.
- Compressing images and objects.
- Setting the compression quality.
- Flattening form fields.
- Removing tags from a document.
- Deleting bookmarks.
- Removing all file attachments, including attachments added to the PDF file as comments.
- Discarding all comments, forms, and form fields from the PDF file.
- Deleting information in the document information dictionary and all metadata streams.
- Downsampling images by setting the target and trigger DPI for images.
- Subsetting the fonts.
- Applying flate compression to all unencoded streams.
- Compressing files in memory.
The Compressor object supports both COM and .NET 32- or 64-bit deployments
While Toolkit has always supported compression – including compressed object streams and cross reference tables, flattening form fields and stripping out unneeded elements, this new functionality adds greater levels of compression and more intelligence during the compression process. New features include support for down sampling images, conversion of JPEG to JPEG2000 and conversion of black and white images to the JBIG2 format.