I have this situation:
I have export to PDF from the Stimulsoft reports and use a special font that i embed into the PDF with
Code: Select all
EmbeddedFonts = true
When i do that from windows service the font is embedded but the text that should use this font is displayed with the fallback font (typically MS Sans Serif)
When i use
Code: Select all
EmbeddedFonts = false
When i DONT use windows service but a simple executable the export is correct with or without to embed the font and all text is displayed as it should be.
this is the settings i use for export:
Code: Select all
report.Render(false);
using (var memoryStream = new MemoryStream()) {
var settingsPDF = new StiPdfExportSettings() {
Compressed = true,
EmbeddedFonts = true,
ImageCompressionMethod = StiPdfImageCompressionMethod.Jpeg,
ImageFormat = StiImageFormat.Color,
ImageQuality = 1,
ImageResolution = 200,
};
report.ExportDocument(StiExportFormat.Pdf, memoryStream, settingsPDF);
return memoryStream.ToArray();
}
Thank you in advance.