Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Greetings,
We are using the DocIO component for converting DOCX to PDF, and we are having issues with versions up from 17.1.0.32-beta paired with version 1.68.0 of SkiaSharp when trying to convert documents in our Windows Docker container. We have tried many combinations of DocIO and SkiaSharp, always having in mind the compatible version specified in NuGet Dependencies, but we get the same result unless with use specifically 17.1.0.32-beta with SkiaSharp 1.68.0.
Our code for the conversion is the following:
using DocIORenderer converter = new DocIORenderer();
using MemoryStream docxMemoryStream = new MemoryStream(File.ReadAllBytes(pathToDocxFile));
using WordDocument wordDocument = new WordDocument(docxMemoryStream, FormatType.Docx);
using PdfDocumnet pdfDocument = converter.ConvertToPDF(wordDocument);
using MemoryStream pdfMemoryStream = new MemoryStream();
pdfDocument.Save(pdfMemoryStream);
The attached document named 'LocalConversion.pdf' shows the result from the conversion in our local machines, and the document named 'ConversionOfWindowsDockerContainer.pdf' is the result from the conversion on our Windows Docker container. We've also attach the original .DOCX, in case is of any help.
We'll also attach the Docker file, named as 'PdfConverterDockerfile'.
Could you please take a look and tell us if we are missing something?
Thanks in advance,
Best regards.