Hi Team ,
We are using Aspose license version to convert color pdf into tiff file but when we are converting into tiff file size is increasing to 20 times . Could you please help us to fix this issue we anted to have almost same size or maximum double the size . Please find below code that we are using in our app .
{
TraceInfo(“Total PDF converting file {0}…”, Src);
try
{
// Initialize license object
Aspose.Pdf.License license = new Aspose.Pdf.License();
// Set license
license.SetLicense("Aspose.Total.lic");
// Console.WriteLine("License set successfully.");
using (var converter = new Aspose.Pdf.Facades.PdfConverter())
{
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(200);
converter.Resolution = resolution;
converter.BindPdf(Src);
// initiate conversion
converter.DoConvert();
var settings = new Aspose.Pdf.Devices.TiffSettings()
{
Compression = Aspose.Pdf.Devices.CompressionType.LZW,
Brightness = 0.80f,
Depth = Aspose.Pdf.Devices.ColorDepth.Default,
};
// save PDF as TIFF
try
{
converter.SaveAsTIFF(Tgt, settings);
}
catch { }
return true;
}
}
catch (Exception ex)
{
Debug.WriteLine(ex.ToString());
TraceInfo("Total PDF conversion exception {0}.", ex.ToString());
return false;
}
finally
{
}
}