I using Spire.XLS 9.7.
Will need to output text containing Variation Selector to Excel and make it PDF.
Using Spire.XLS, exported to Excel with text containing Variation Selector.
'result.xlsx' is displayed without problems on MS Excel.
When this is saved as PDF, the Variation Selector is displayed as garbled characters.
There was no problem when 'result.xlsx' was export to PDF with MS Excel.
- Code: Select all
var baseChar = "\U00008FBB";
var baseCharWithVariationSelector = "\U00008FBB\U000E0100";
using (var workbook = new Workbook())
{
var worksheet = workbook.Worksheets[0];
var style = workbook.Styles.Add("style");
style.Font.FontName = "MS 明朝";
worksheet["A1"].CellStyleName = style.Name;
worksheet["A2"].CellStyleName = style.Name;
worksheet["A1"].Text = $"CJK UNIFIED IDEOGRAPH-8FBB : '{baseChar}'";
worksheet["A2"].Text = $"CID+3056 : '{baseCharWithVariationSelector}'";
workbook.SaveToFile("result.xlsx", Xls.FileFormat.Version2013);
worksheet.SaveToPdf("export_by_spire.pdf");
}
Is there way to work around this issue?
Or are there any plans to support IVS?
Thanks in advance.