Issue Exporting to pdf, fonts not embedded with encoding identity-h and not with type TrueType(CID)
Posted: Tue May 24, 2022 10:42 pm
I have some issue exporting the report to pdf, fonts are embeded but not correctly or i dont't know how to do it correctly.
My system is windows 10, .net 6, and in a controller I export it to file and save it to disk.
everything works fine but the fonts get embedded the wrong way like this
but when i export it via windows designer then the fonts are embedded correctly like this
Even when i call the webdesigner and export the report to pdf it again embedds the fonts the wrong way
How to correctly set the encoding and type of embedded fonts to be like encoding identity-h and type TrueType(CID)
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)