Page 1 of 1

The PDF font of the report changes upon export

Posted: Tue May 21, 2024 4:41 am
by toananha22
Hello,

My report is currently using the Times New Roman font, but after exporting to PDF using StiPdfExportService.ExportPdf(), it automatically switches to another font, seemingly Roboto. Even when using the Print function in the viewer, the same issue occurs. Do I need to set something up?

Thanks.

Re: The PDF font of the report changes upon export

Posted: Tue May 21, 2024 6:10 am
by Max Shamanov
Hello,

Have you loaded the Times New Roman font into the StiFontCollection?

Thank you.

Re: The PDF font of the report changes upon export

Posted: Tue May 21, 2024 9:18 am
by toananha22
Hello,

I tried it and it worked.

Thank you.

Re: The PDF font of the report changes upon export

Posted: Tue May 21, 2024 10:58 am
by Max Shamanov
Hello,

You are welcome!