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

Free Support Forum - aspose.com

QrCode Section Went Black

Hi All I am using Aspose.Pdf 20.7.0 While converting PDF file to tif/png/jpeg , the qrCode section of the Pdf got black in output Image, Attaching that File As well.
Please note This black qrcode appears only in Linux OS, While in windows it is working fine.
We have .Net Core project and We deployed our server in Linux server
Attaching Code and File As well

string path = “”;
string asposeLicense = @“C:\Dev\Keys\Aspose.Total.lic”;
Aspose.Pdf.License pdflicense = new Aspose.Pdf.License();
pdflicense.SetLicense(asposeLicense);
// Open document
Document pdfDocument = new Document(FilePath);

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

        // Create TiffSettings object
        TiffSettings tiffSettings = new TiffSettings
        {
            Compression = CompressionType.CCITT3,
            Depth = ColorDepth.Format8bpp,
            Shape = ShapeType.Portrait,
            SkipBlankPages = true,
            Brightness = .7f
        };

        // Create TIFF device
        TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);


        // Convert a particular page and save the image to stream
        path = @"C:\Dev\Files\ViveProcessing\Input\" + "AllPagesToTIFF_out.tif";
        tiffDevice.Process(pdfDocument, path);

CRN_4075002461_20210310_085032.pdf (175.8 KB)

@rahulcodepractise

You are using old version of Aspose.PDF. Please upgrade to the latest version of Aspose.PDF for .NET 22.1 and let us know how it goes on your side. If you still face problem, please attach your problematic TIFF file here for testing. We will investigate the issue and provide you more information on it.