PDF to TIFF File Size Question

Hello,

Converting a PDF to TIFF I am using this code :

Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.LZW;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp;

converter.SaveAsTIFF(output_file, tiffSettings, new WinAPIIndexBitmapConverter());
For the attached sample I get 350KB file size.

Changing to Color Depth to the default:

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default

Will get 4 to 5 times larger file!

In this case I got 1250KB file size.

Does it make sense to you?

What is the best for me to get reasonable colors and file sizes?

Thanks

Gizi Ben-Tovim

iFOREX

Hi Gizi Ben-Tovim,


Thanks for contacting support.

In order to compress the size of resultant TIFF image, please try using value CCITT4 of CompressionType enumeration. However when using this value, the resultant TIFF will be Black and White (no colors). However if you use None or other value such as LZW, the resultant TIFF will have colors but the size of document will be quite large. Each compression type has its own algorithm and resultant files are generated using that particular algorithm.

We are sorry for this inconvenience.