I've created a simple report with one text field and font set to Arial; 24pt.
When exporting the report from within the Designer (Windows), to PDF with PDF/A compliance, the font is embedded.
When trying to export the same report from code and setting StiPdfExportSettings,PdfComplianceMode to StiPdfComplianceMode.A3, the font is not embedded in the resulting PDF file. I've tried setting all sorts of settings, like StiPdfExportSettings.EmbeddedFonts = true, but nothing seems to embed the font.
What am I missing?
Code: Select all
var report = new StiReport();
report.Load(reportFile);
await report.RenderAsync();
var exportSettings = new StiPdfExportSettings();
exportSettings.PdfComplianceMode = StiPdfComplianceMode.A3;
await report.ExportDocumentAsync(StiExportFormat.Pdf, outputFile, exportSettings);