When I launch this code on docker the font is invert, some part of the image became black and other one blank => see my sample image in attachement and the original pdfAsposeTicketQrCodeFactureSuisse.zip (9.2 MB)
On windows no problem
//load pdf from file
Aspose.Pdf.Document pdf = new(ms);
BarCodeResult[] barCodeResults;
MemoryStream imgStream;
int pageCount = 0;
foreach (var pdfPage in pdf.Pages)
{
imgStream = pdfPage.ConvertToPNGMemoryStream();
pageCount++;
using (FileStream outputFileStream = new FileStream($"{pageCount}.png", FileMode.Create))
{
imgStream.CopyTo(outputFileStream);
}
Would you please make sure that libgdiplus and msttcorefonts packages are correctly installed in the environment where you are performing the conversion? Also, please make sure to use the latest version of the API. In case issue still persists, please share your docker file with us so that we can test the scenario in our environment and address it accordingly.
We tried to execute the code snippet share by you using the docker file and VS2022 but we faced some errors. They may be related to the configuration settings at our end. Could you please share a sample VS application for our reference so that we can further proceed to test the case accordingly?
We were able to replicate the issue in our environment and have logged it as PDFNET-52144 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.
We are afraid that the earlier logged ticket could not get resolved yet. We will surely investigate and fix the issue on a first come first serve basis and let you know once we make some progress towards its resolution. Please spare us some time.