Page 1 of 1

PDF exporting works incorrectly with code and source from example

Posted: Fri Oct 01, 2021 8:39 pm
by test
PDF exporting works incorrectly with code and source from example.

(node.js on Mac OS X 10.15.7)

Test case:
0. install stimulsoft-reports-js
1. Run this https://github.com/stimulsoft/Samples-J ... e/index.js
like 'node index.js'

Actual result: it generates PDF file with broken fonts (all letters on the same position)

expected result: PDF generated as via UI - with correct letters

Re: PDF exporting works incorrectly with code and source from example

Posted: Mon Oct 04, 2021 10:00 pm
by Lech Kulikowski
Hello,

Please check that you have added used fonts in the FontCollection.

Also, please check the build 2021.4.1 which will be available in this week.

Thank you.

Re: PDF exporting works incorrectly with code and source from example

Posted: Tue Jan 25, 2022 10:08 am
by djjoyro
Hello,

I have the same problem in version 2022.1.4. Is there any fix for this ?

Thank you.

Re: PDF exporting works incorrectly with code and source from example

Posted: Tue Jan 25, 2022 10:21 am
by djjoyro
Hello,

In case anyone else has this problem, the solution is to import all the used fonts in report with
Stimulsoft.Base.StiFontCollection.addOpentypeFontFile("arial.ttf");
It worked for me after placing arial.ttf file in the root of the project.

Have a nice day.

Re: PDF exporting works incorrectly with code and source from example

Posted: Tue Jan 25, 2022 1:29 pm
by Max Shamanov
Hello

You are welcome.
Please let us know if you need any additional help.

Thank you.