Hi Team ,
I am using Aspose.PDF as licence copy , aspose is converting color PDF into tiff successfully but it increasing the tiff size by 15 times . Could you please help me to provide C# sample code to reduce the file size to original PDF file or maximum it can double the tiff file size .
// 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,
//Brightness = 0.10f,
};
// 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
{
}
}