Hi,
I am using your FreeSpire.XLS 10.10.0 .NET library to convert xlsx to PDF on Android
( C# project is a Xamarin Form project)
using the following code
Worksheet sheet_sub = workbook_sub.Worksheets[0];
string pdfAddress2 = Path.Combine(pdfFolderPath, pdfFilesNum + ".pdf");
sheet_sub.SaveToPdf(pdfAddress2);
the workbook_sub itself is loaded from a xlsx file
What I found is that if the xlsx contains only english, the SaveToPDF call is successful.
However, if I added a single Chinese character e.g. (你) to the xlsx, the SaveToPDF call
throw exception as follows:
{sprᮠ: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at sprὤ.ᜀ (System.IO.Stream A_0) [0x00043] in <9336e97fddb24777b8cd70208785816a>:0
at Spire.Xls.Core.Spreadsheet.XlsWorkbook.SaveToPdf (System.String fileName) [0x00068] in <9336e97fddb24777b8cd70208785816a>:0
at Spire.Xls.Core.Spreadsheet.XlsWorksheet.SaveToPdf (System.String fileName) [0x0020e] in <9336e97fddb24777b8cd70208785816a>:0
Is there a solution for this problem ?
Thanks.