2024.1.2 on SpringBoot3 font error

Stimulsoft Reports.JAVA discussion
Post Reply
sutrazhou
Posts: 4
Joined: Sun Jan 14, 2024 3:24 am

2024.1.2 on SpringBoot3 font error

Post by sutrazhou »

1、jdk17 + springboot3
2、stimulsoft-reports-report 2024.1.2

run windows get

Your system does not have access to font files, please use export without embedded fonts
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: 2024.1.2 on SpringBoot3 font error

Post by Vadim »

Hello.

If you try to export report to PDF file with option Embedded Fonts = true and Java server have no access to font files you will get this message.
Please export to PDF with option Embedded Fonts = false
sutrazhou
Posts: 4
Joined: Sun Jan 14, 2024 3:24 am

Re: 2024.1.2 on SpringBoot3 font error

Post by sutrazhou »

The same code can run on JDK8, so I don't think that's the reason
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: 2024.1.2 on SpringBoot3 font error

Post by Vadim »

Hello.

Yes, it is the reason, some JDK don't allow to access font files.
As solution from version 2024.1.3 you can add necessary TrueType fonts to report resources - it will use for export to PDF with embedded fonts.
sutrazhou
Posts: 4
Joined: Sun Jan 14, 2024 3:24 am

Re: 2024.1.2 on SpringBoot3 font error

Post by sutrazhou »

Do you have any explanatory documents or examples?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: 2024.1.2 on SpringBoot3 font error

Post by Lech Kulikowski »

Hello,

You can add the necessary font in the resources of the report.

Thank you.
sutrazhou
Posts: 4
Joined: Sun Jan 14, 2024 3:24 am

Re: 2024.1.2 on SpringBoot3 font error

Post by sutrazhou »

Vadim wrote: Mon Jan 15, 2024 8:18 am Hello.

If you try to export report to PDF file with option Embedded Fonts = true and Java server have no access to font files you will get this message.
Please export to PDF with option Embedded Fonts = false
Do you have any other solutions
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: 2024.1.2 on SpringBoot3 font error

Post by Vadim »

Hello,

Add necessary fonts in the resources of the report is the only way.
Post Reply