PDF Export Font not included
Posted: Fri Dec 01, 2017 1:27 pm
Hello
The chart is exported as pdf. Pdf openend in SumatraPDF and there is no font, as shown in the image SumatraPDF.png. The legend is set in the code to an arial font but is not shown in the pdf. The chart exported as png shows the font as in the image image.png. Any suggestions how to get a proper pdf export ?
Following code is used:
TeeChart Pro - Productversion 4.1.2017.2145
Best Regards,
The chart is exported as pdf. Pdf openend in SumatraPDF and there is no font, as shown in the image SumatraPDF.png. The legend is set in the code to an arial font but is not shown in the pdf. The chart exported as png shows the font as in the image image.png. Any suggestions how to get a proper pdf export ?
Following code is used:
Code: Select all
ChartFont chartFont = new ChartFont(MyTeeChart.Chart, new Font("Arial", 12));
MyTeeChart.Chart.Legend.Font = chartFont;
MyTeeChart.Chart.Export.Image.PDF.Document().Fonts.Add(new PDFFontListEntry(chartFont));
MyTeeChart.Chart.Export.Image.PDF.Save(pathWithFilename);
Best Regards,