My system is windows 10, .net 6, and in a controller I export it to file and save it to disk.
Code: Select all
var path = "C:/Users/Matija/Desktop/Report69.mrt";
var bytes = System.IO.File.ReadAllBytes(path);
var report = StiReport.CreateNewReport();
report.Load(bytes);
var pdfSettings = new StiPdfExportSettings();
pdfSettings.EmbeddedFonts = true;
report.ExportDocument(StiExportFormat.Pdf, "C:/Users/Matija/Desktop/Report.pdf", pdfSettings);
How to correctly set the encoding and type of embedded fonts to be like encoding identity-h and type TrueType(CID)