We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The characters specified in the "Variation Selectors" are garbled when outputting to PDF

When I entered a character with a “Variation Selectors” in Aspose Cells and saved it as a PDF, the characters were garbled. Is there any solution?

Variation Selectors (Unicode block) - Wikipedia

@TakaIkeda,

Could you please share your sample code using Aspose.Cells and sample files (input file (if any) and output PDF) to reproduce the issue, we will check it soon.

Share below. thank you.

Sample Code

public static void Main(string[] args)
{
    //LicenseLoad();
    MemoryStream pdfStream = new MemoryStream();
    Workbook wb = new Workbook();
    Worksheet ws = wb.Worksheets[0];
    ws.Cells[0, 0].Value = "榊󠄀";//  \u8de5\ue0100
    wb.Save(pdfStream, SaveFormat.Pdf);
    File.WriteAllBytes("out.pdf", pdfStream.GetBuffer());
}

PDF Result
image.png (661 Bytes)

out.pdf (12.5 KB)

Supplement
The display contents may differ depending on the environment, so supplement with images.

image.png (8.8 KB)

@TakaIkeda,

Thanks for the screenshots and sample.

Please notice, after an initial test, I am able to reproduce the issue as you mentioned by using. I found the characters specified in the Variation Selectors (https://en.wikipedia.org/wiki/Variation_Selectors_(Unicode_block)) are garbled when rendering to PDF. I have logged a ticket with an id “CELLSNET-52349” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.