We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Image converted from PDF to TIFF is all black

Hello,

I am trying to convert a PDF that contains a email message with a company logo. The problem is that the converted TIFF file’s logo comes out all black and it’s not very visible. The logo is basically just blue and white. Shown below is the code i am using. I have tried several different settings, but nothing is working.

            Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(pdfFilePath);

            // Create Resolution object
            Resolution resolution = new Resolution(200);

            // Create TiffSettings object
            TiffSettings tiffSettings = new TiffSettings();
            tiffSettings.Compression = CompressionType.LZW;
            tiffSettings.Depth = ColorDepth.Format8bpp;
            tiffSettings.Brightness = 0.01f;
            tiffSettings.Shape = ShapeType.None;

            tiffSettings.SkipBlankPages = false;

            // Create TIFF device
            TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
            // Convert a particular page and save the image to stream
            tiffDevice.Process(pdfDocument, tiffFilePath);

@TmpALAM01

Thank you for contacting support.

Would you please share source and generated files with us so that we may try to reproduce and investigate it in our environment.