Add and optimize images in PDFs

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. Creation of image masks is not supported in version for .NET Standard.

Optimize images in PDFs

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), and zip/deflate compression algorithms or completely uncompressed.

Existing images can also be resized or scaled to reduce the PDF size even more. Resizing of images is not supported in version for .NET Standard.

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.