fastreport export pdf not shows fonts orginally(returns arial)

I have a sample report. when i export it as pdf from fastreport designer font is true. when i export it pdf from asp.net code on debug mode font is true again.

But when i export it as pdf from asp.net on publish font is changing to arial. Chomsky font is installed on server which i tested.

Fastreport version:2018.4.7.0


my code sample:


FastReport.Utils.Config.WebMode = true;

var webReport = new FastReport.Web.WebReport();

webReport.Report.Load(reportPath);

webReport.Report.Dictionary.RegisterData(List, "Table", true);

webReport.PdfEmbeddingFonts = true;

webReport.Report.Prepare();

System.IO.Stream stream = new System.IO.MemoryStream();

FastReport.Export.Pdf.PDFExport exportDiploma = new FastReport.Export.Pdf.PDFExport();

//exportDiploma.PdfCompliance = FastReport.Export.Pdf.PDFExport.PdfStandard.PdfA_3b;

exportDiploma.EmbeddingFonts = true;

webReport.Report.Export(exportDiploma, stream);

Comments

Leave a Comment