简体   繁体   中英

PDF, HTML and SVG conversions are not working in Aspose.Cells

I have a .NET Core 2.0 project and use Aspose.Cells version 18.2.0. When I try to convert valid XLS to PDF, HTML or SVG, it fails.

I'm using this code:

Workbook doc = new Workbook(inputStream); // my input file stream
doc.Save(outputStream, SaveFormat.Pdf);

Instead of SaveFormat.Pdf you can try Svg and Html

As result of PDF conversion I get PDF file with "Invalid file structure", as Pdf Readers say.

As result of SVG conversion I get SVG file that any browser is unable to open.

As result of HTML conversion I get Html file that contains just a lot of random symbols.

I've noticed that this issue appears only in .NET Core project, and in .NET Framework 4.6.1 everything works fine. CSV and TXT conversions are fine on both Core and Framework.

So my question is: Is there any workaround to get it working on .NET Core or only option is to use .NET Framework until it gets fixed? Or maybe I missed something in docs?

Update-3

Aspose.Cells for 18.4 and onward supports all the features in .NET Core/Standard as it supports in .NET 2.0/4.0. Please check the updated article from the following link.

https://docs.aspose.com/display/cellsnet/Feature+Overview


Update-2

Please download and try the Aspose.Cells for .NET - April Release ie 18.4 from the following link and it should fix most of your issues.

https://www.nuget.org/packages/Aspose.Cells/18.4.0

Let us know if you find any issue, we will look into it and help you asap.


Update-1

We are afraid, these features are not supported at the moment but we will support them in future as soon as possible.

Please see the Feature Overview page on Aspose.Cells for .NET documentation for more help.

Note: I am working as Developer Evangelist at Aspose

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM