Aspose fails to convert a PDF file to xlsx format when I use WSL from visual studio 2019. However, when I don’t use WSL, the conversion works normally. Also, when I do the conversion using the ExcelSaveOptions.ConversionEngines.LegacyEngine option it works in WSL too. I’m using Aspose.PDF version 22.1.0.
Can you please try using 22.10 version and see if coversion is working correctly or not? In case issue still persists, please share your sample PDF with us so that we can test the scenario in our environment and address it accordingly.
My license is supported up to version 22.6. I had renewed the license exactly to use Aspose on Linux.
Here’s the PDF file I’m trying to convert:
Resolucao102-CNJ_2022-07_Anexo-VIII_id28247-1.pdf (70.7 KB)
And I’m using this code:
Stream fileStream = new MemoryStream(fileBytes); Document pdfDocument = new Document(fileStream); ExcelSaveOptions options = new ExcelSaveOptions(); options.Format = ExcelSaveOptions.ExcelFormat.XLSX; pdfDocument.Save(newPath, options);
Are you facing some Exception or error during conversion in WSL? Can you please also confirm if all Microsoft Fonts are installed correctly in the environment and libgdiplus package is installed?