I am having a problem using Korean text in chart labels. My characters gets all squished together and are illegible. See the attachment for an example.
Hi,
Thanks for your posting and using Aspose.Cells.
Are all the fonts used in your Excel file installed on your machine? If not then please install them.
Please provide us your sample code and source excel file replicating the issue with the latest version:
Aspose.Cells for .NET 8.6.3
. We will look into your issue and update you asap.
No problem. I have attached a sample which replicates the problem. This is using the latest Aspose versions.
- Exports the workbook to a PDF, which looks fine
- Exports the chart to a JPG, which looks fine
- Exports the chart to an EMF, which I believe looks fine
- Creates a new Word file and inserts the EMF - This file cannot open in Word, because it indicates it is corrupt
- Exports the Word file to a PDF - This file has the Korean letters all overlapping
Hi,
Hi John,
Thanks for your inquiry.
You are getting corrupted DOCX because the SaveFormat is incorrect in your code. See the following incorrect SaveFormat. Please change it to SaveFormat.Docx.
doc.Save(".\Test.docx", Aspose.Words.SaveFormat.Pdf);
Regarding Korean text issue in output Pdf, we have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-12925. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Thanks Tahir, and thanks for catching that bug in my sample code.
As it has been a month, I’m just following up to see if there is any update to this issue. Thank you!
Hi John,
Thanks for your inquiry. We regret to share with you that this issue (WORDSNET-12925) has been postponed. We will inform you via this forum thread as soon as there are any further developments. We apologize for your inconvenience.
As a workaround of this issue, please use MetafileRenderingOptions.EmfPlusDualRenderingMode as EmfPlusDualRenderingMode.Emf. Hope this helps you.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage(MyDir + "Chart.emf");
PdfSaveOptions options = new PdfSaveOptions();
options.MetafileRenderingOptions.EmfPlusDualRenderingMode = EmfPlusDualRenderingMode.Emf;
doc.Save(MyDir + "Out.pdf", options);
The issues you have found earlier (filed as WORDSNET-12925) have been fixed in this Aspose.Words for .NET 23.6 update also available on NuGet.