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

Free Support Forum - aspose.com

Poor convertion quality PDF -> TIF

Our customers complains about poor quality of PDF->TIFF conversion especially when pdf is form and has perfect quality. Is there anything we can tweak in code to have better results? Or can you improve the CCIT4 conversion algorithm?


I attached the example pdf and the tiff result (pages 2&3)The code we use for conversion is:

Resolution resolution = new Resolution(300);
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.CCITT4;
tiffSettings.Depth = ColorDepth.Format1bpp;
tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.None;
tiffSettings.SkipBlankPages = false;
tiffDevice = new TiffDevice(resolution, tiffSettings);
tiffDevice.Process(pdfDocument, i, i, outputStream);                   

Hi,


Thanks for contacting support.

I have tested the scenario and have managed to reproduce the same formatting issue when using above stated code. However please note that when using CompressionType as CCIT4, the contents of resultant file are compressed to reduce file size. Furthermore, when using values from ColorDepth enumeration, the size of resultant file can be further reduced.

Besides this when using following code snippet, to convert PDF to TIFF format, the formatting and fidelity of resultant files is correct.

[C#]

Document pdfDocument = new Document(“c:/pdftest/test.pdf”);<o:p></o:p>

Resolution resolution = new Resolution(300);

TiffSettings tiffSettings = new TiffSettings();

tiffSettings.Compression = CompressionType.None;

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

tiffSettings.Shape = Aspose.Pdf.Devices.ShapeType.None;

tiffSettings.SkipBlankPages = false;

foreach(Page page in pdfDocument.Pages)

{

TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);

tiffDevice.Process(pdfDocument, page.Number, page.Number, "c:/pdftest/test_Converted"+page.Number+".tiff");

}