Add and optimize images in PDF in C# and VB.NET

Add images to PDF in C# and VB.NET

Add images to PDF files

You can add images in GIF / TIFF / PNG / BMP and JPEG formats to PDF documents.

The library will try to preserve the format and color space of an image, if possible.

Multipage images are fully supported too. You can add just one page from a multipage image to a PDF document.

The library supports transparent images. Transparency can be added to opaque images by using mask images or specifying color masks.

Optimize images in PDF

Docotic.Pdf library can be used to optimize images in PDF documents.

You can recompress existing images and any images you want to add to a PDF document.

Images can be recompressed using JPEG, CCITT Group 3 and 4 (fax), JPEG 2000, and zip/deflate compression algorithms or completely uncompressed.

Existing images can also be resized or scaled to reduce the PDF size even more.

You can also replace existing images.

Use legacy and non-standard images

The library supports images produced by legacy hardware like scanners and faxes.

In most cases you'll be able to use non-standard images that cannot be properly opened by image-related methods and classes in .NET framework.

Docotic.Pdf can even use partially broken images in some cases.