Hi,
Trying to convert the pdf file to .tiff results in a .tiff file with a blue background. Any idea what the cause may be?
Thank you
Hi,
Trying to convert the pdf file to .tiff results in a .tiff file with a blue background. Any idea what the cause may be?
Thank you
Can you please share the used sample code, source file and generated output. We will be able to investigate that on our end on provision of requested information.
I can not share the file it contains customer’s private information
We have purchased from you around 6 years ago a package/converter for .NET
ColorDepth colorValue = (ColorDepth)Enum.Parse(typeof(ColorDepth), asposeCompressPDF);
if (!Enum.IsDefined(typeof(ColorDepth), colorValue))
{
throw new ApplicationException(“Invalid Aspose Compress Parameter: ConvertCompressPDF. Allowed: Format8bpp, Format4bpp, Format1bpp”);
}
//Create TiffSettings object (To reduce file size, change color settings)
TiffSettings tiffSettings = new TiffSettings();
// CompressionType.LZW is the default CompressionType
tiffSettings.Compression = CompressionType.LZW;
// Allowed: 0 (default), Format8bpp, Format4bpp, Format1bpp
tiffSettings.Depth = colorValue;
try
{
converter.SaveAsTIFF(stream_out, tiffSettings, new WinAPIIndexBitmapConverter());
}
catch (Exception ex)
{
if (colorValue != ColorDepth.Default)
{
tiffSettings.Depth = ColorDepth.Default;
converter.SaveAsTIFF(stream_out, tiffSettings, new WinAPIIndexBitmapConverter());
}
}
The file is required because it is hard to determine the cause of the issue without replicating it in our environment.