Hello,
You will find attached a PDF that we are converting to TIFF and the resulting TIFF file.
The TIFF file is completely black, except for the logo.
We are using Aspose.Pdf 7.5.0.0
Here is the code for the conversion:
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(StreamHelper.WriteToStream(bytes));
// TIFF Settings
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = compression; // CCITT4
tiffSettings.Depth = colorDepth; //Format1bpp
tiffSettings.SkipBlankPages = false;
// Resolution
Resolution r = new Resolution(resolution); //400
// TIFF device
TiffDevice tiffDevice = new TiffDevice(r, tiffSettings);
// TIFF
using (MemoryStream outputStream = new MemoryStream())
{
tiffDevice.Process(pdfDocument, outputStream);
pdfDocument.Dispose();
return StreamHelper.ReadStreamFromBeginning(outputStream);
}