We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert PDF to TIFF using Aspose.PDF for .NET - Use higher bit to something like 14 or 16

So I am converting a couple of pdfs to .tiff image files. However the resulting images are quite large due to using the default bit depth of 32. I have managed to reduce the size quite a lot by reducing the bit depth. However this makes some of my text elements unreadable. So I am wondering if it is possible to set a higher bit to something like 14 or 16? This would probably still make my text readable but still reducing the file size quite a bit.

    Resolution resolution = new Resolution(100);
    TiffSettings tiffSettings = new TiffSettings
    {
        Compression = CompressionType.LZW,
        Depth = ColorDepth.Default,
        SkipBlankPages = false
    };
    _tiffDevice = new TiffDevice(resolution, tiffSettings);

    Document pdfDocument = new Document("sourceFilePath.pdf");
    _tiffDevice.Process(pdfDocument, "targetFilePath.pdf");

@stebe95

Sadly, the above feature is not available in the API. However, you could please try to increase the threshold of the output image using Bradley Algorithm. In case it does not help in increasing the readability, please share your sample PDF with us. We will test the scenario in our environment and address it accordingly.