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,
omg:
So it seems like Aspose.Words is having some kind of trouble with the EMF file generated by Aspose.Cells, which results in a corrupted DOCX and a PDF with spacing issues in the chart graphic.
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)
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!
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);