Hello,
We are using Aspose.Cells 7.4.2
We are generating an Excel file containing one worksheet with a table and another worksheet with a chart.
In the data we are displaying some rows using thai characters.
After we have the Excel file, we are generating a PDF out of it by using this piece of code:
Workbook ws = new Workbook(new FileStream(“c:\Thai Source.xlsx”, FileMode.Open));
var saveOptions = new PdfSaveOptions(SaveFormat.Pdf) { OnePagePerSheet = true };
ws.Save(“c:\Thai-Output.pdf”, saveOptions);
The issue is that depending on where we run the code we get block characters replacing the thai ones.
For example we tried it on several webservers in our company and in some webservers we could get thai characters and in the other servers the PDF had blocks replacing thai chars.
Also on developer machines we can generate valid PDFs with thai chars.
Also another strange things is that you can see that the issue is in the “table” part of the PDF, the chart view is showing thai characters ALWAYS.
I dont know if this is making the difference, but the webservers that do not generate valid thai characters on table do not have MS Excel installed on it.
I’m attaching the source Excel and outputs.
I tried already several things found in other posts, like DefaultFont in the options using the MingLiU, setting font directory but nothing worked so far.
I hope somebody can help us here