Convert PDF to TIFF using Compression CCITT4 with Aspose.PDF for .NET

Aspose Team. We are using Aspose pdf (file version 9.1.0.0) and Product Version 2014.02.27. We are having trouble when converting the attached PDF document. And it is not converting correctly. can you please advise what we are supposed to do to resolve this issue? We are trying to convert PDF to TIFF.

tiffSettings.Compression = CompressionType.CCITT4;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp;
tiffSettings.Shape = ShapeType.Portait;

Input.pdf (667.4 KB)

Let us know if you need any other details.

Thanks
Sundeep Sakineni

@ssakineni

We have tested the scenario using Aspose.PDF for .NET 20.7 and were unable to notice any issue. We are afraid that you are using quite old version of the API and it is always recommended to use latest version of the API as it contains more fixes and improvements. Please use latest version of the API and following code snippet to convert PDF into TIFF:

Document document = new Document(dataDir + "Input.pdf");
Resolution resolution = new Resolution(300);
// Create TiffSettings object
TiffSettings tiffSettings = new TiffSettings()
            {
                Compression = CompressionType.CCITT4,
                Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp,
                Shape = ShapeType.Portrait
            };
// Create TIFF device
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
tiffDevice.Process(document, dataDir + "Input_pdf.tiff");

Input_pdf.zip (173.8 KB)

Is the newer version backward compatible? Do we have to worry about all other types of attachments if we upgrade our current Aspose.Total License?

@ssakineni

The newer version has many changes in terms of Classes, Methods and API Usage. You may please visit Working with Aspose.Pdf articles in API Documentation in order to get all details. Also, in newer version(s) a much faster and improved DOM approach has been introduced and older Aspose.Pdf.Generator code has been removed.