We are porting to .NET Core 2.0 our .Net 4.5.2 code that converts various file formats to PDF using Aspose components and we are having trouble converting xlsx and csv formats to PDF.
We are using Aspose.Cells version 18.3.0 to convert to PDF from a console app that is targeting .netcoreapp2.0
The code we use is (after we load the content of the input file in the input MemoryStream):
var workbook = new Workbook(input)
workbook.Save(output, SaveFormat.Pdf)
The PDF conversion does not fail yet we cannot open the generated PDFs (csv.pdf (9.4 KB) xlsx.pdf (7.6 KB)) in Acrobat Reader.
I am afraid, the feature “Excel to PDF” is not available in .NET Core. This is also mentioned in the mentioned document, see the screenshot for your reference:
This issue has already been logged as “CELLSNET-45954” into our database.
Once we have an update on it, we will let you know here.
Good to know that your issue is sorted out by the latest version/fix. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.