Skip to content

Latest commit

 

History

History

OptimizeImages

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Optimize PDF images in C# and VB.NET

This sample shows how to optimize existing images in PDF document using Docotic.Pdf library.

Description

Use one of PdfImage.RecompressWith* methods to optimize images in PDF document. Recompression of images is an effective way to greatly decrease size of the output PDF file.

You can also resize images in a PDF document. To do so please use one of the PdfImage.ResizeTo or PdfImage.Scale methods.

You can recompress images using Flate, Jpeg and CCITT compression schemes. Please note that recompression is often a lossy process.

This sample shows only one approach to reduce size of a PDF. Please check Compress PDF documents in C# and VB.NET sample code to see more approaches.

See also