Black image when converting PDF to TIFF

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);

}

Hi Philippe,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the template file and sample code.

I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system as PDFNEWNET-34532. We will notify you via this forum thread regarding any updates.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-34532) have been fixed in Aspose.Pdf for .NET 7.7.0.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.