PDF exporting works incorrectly with code and source from example

Stimulsoft Reports.JS discussion
Post Reply
test
Posts: 1
Joined: Fri Oct 01, 2021 8:34 pm

PDF exporting works incorrectly with code and source from example

Post 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
Attachments
SimpleList.pdf
(14.48 KiB) Downloaded 114 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

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

Post 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.
djjoyro
Posts: 32
Joined: Tue Apr 05, 2011 4:50 am
Location: România

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

Post by djjoyro »

Hello,

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

Thank you.
djjoyro
Posts: 32
Joined: Tue Apr 05, 2011 4:50 am
Location: România

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

Post 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.
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

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

Post by Max Shamanov »

Hello

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

Thank you.
Post Reply