PDF to Tif converting second page as blank

Hi,

We are trying to convert PDF to tiff and using version 25.6 Aspose.Total license and the second page is converting as blank. When we are commenting the license it works fine. Could you please help. Attaching the sample.

sample.zip (19.7 KB)

Please find the code snippet we are using below:

public static System.Drawing.Image[] ConvertPDFtoMultiPageTiff(string OutputFolder, string FullInputFileName)
{
System.Drawing.Image[] sourceImages = null;

        try
        {
           

            Document pdfDocument = new Document(FullInputFileName);
            pdfDocument.Flatten();

            //create Resolution object
            Resolution resolution = new Resolution(600);//300
            //create TiffSettings object
            TiffSettings tiffSettings = new TiffSettings();

            tiffSettings.Compression = CompressionType.CCITT4;
            tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp;


            if (tiffSettings.Shape == ShapeType.Landscape)
                tiffSettings.Shape = ShapeType.None;
            tiffSettings.SkipBlankPages = false;
            //tiffSettings.Brightness = .40f;

            Stream output = null;
            sourceImages = new System.Drawing.Image[pdfDocument.Pages.Count];
            //create TIFF device
            TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);


            for (int page = 1; page <= pdfDocument.Pages.Count; page++)
            {
                Aspose.Pdf.ColorType pageColorType = pdfDocument.Pages[page].ColorType;
                if (pageColorType == ColorType.Rgb)
                {
                    tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;
                }

                else
                {
                    tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
                }

                output = new MemoryStream();

                tiffDevice.Process(pdfDocument, page , page , output);


                sourceImages[page - 1] = System.Drawing.Image.FromStream(output);

                sourceImages[page-1].Save(Path.Combine(OutputFolder, String.Concat(Path.GetFileNameWithoutExtension(FullInputFileName), ".", page.ToString().PadLeft(3, '0'))));



            }

            output = null;
            pdfDocument = null;
            tiffSettings = null;


        }
        catch (Exception ex)
        {
            sourceImages = null;
            throw new Exception(String.Format("Error in splitTiffPages: {0}", ex.Message));
        }


        return sourceImages;
    }

@cndtsumesh

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-60907

We recommend posting issues related to Aspose.PDF for .NET in the appropriate forum, as it is the most suitable platform for such discussions. However, we have tested the scenario in our environment using the latest version and successfully reproduced the issue. Rest assured, we will keep you updated on the resolution of the logged ticket through this forum thread. We kindly ask for your patience.

We apologize for any inconvenience caused.