PDF export from windows service font problem

Stimulsoft Reports.NET discussion
Post Reply
DimitarCC
Posts: 1
Joined: Wed Oct 01, 2014 6:14 am

PDF export from windows service font problem

Post by DimitarCC »

Hello.
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
option in export settings. I made the export to stream and then use the bytes to save to file.
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
from same windows service the text is displayed with the special font but there is another bugs in the text (messed characters)
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();
}
So if somebody can help me out with this or give me directions what i can do about it i will be glad.
Thank you in advance.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF export from windows service font problem

Post by HighAley »

Hello.

Do you check the PDF-file on the same machine?
Did you reboot machine after installing the custom font? It's necessary to reboot the system.
Could you send us the PDF-file, a sample report template and this font for analysis.

Thank you.
Post Reply