antosha.akinshin Posted August 23, 2017 Share Posted August 23, 2017 Hello.When I created the report, I encountered the following problem. I loaded a сгыещь font and use it to display the text field. When it overflows on the current page, this field is moved to the next page.When looking at the result in Jaspersoft Studio, the result is correct, but when export to PDF, some of the text disappears after transferring to the next page.How to be in this case? Link to comment Share on other sites More sharing options...
ghudson_1 Posted August 23, 2017 Share Posted August 23, 2017 HTML export relies on the client-Browser (chrome, firefox, etc) to fetch the true font from the OS. PDF doesn't have this ability, so if you aren't referencing one of the handful of 'CORE' fonts which are part of the PDF Spec/Standard, then you actually embed the ttf in the PDF. Easiest way to do this is via Font extensions, see the font extensions chapter in the Studio User Guide. Link to comment Share on other sites More sharing options...
hozawa Posted August 23, 2017 Share Posted August 23, 2017 Jaspersoft Studio by default display a report using Java GUI which uses fonts available to Jaspersoft Studio. In the case of PDF, pdf viewer needs acces to the fonts. This can be done by including fonts in to the pdf using font extentions in JasperReports.https://community.jaspersoft.com/wiki/custom-font-font-extension Link to comment Share on other sites More sharing options...
antosha.akinshin Posted August 24, 2017 Author Share Posted August 24, 2017 We loaded the fonts according to the instructions, but nothing has changed. Now when viewing the report in JasperSoft Studio you can see:Page 1: Page 2: The first page ends with line 52, on the second page begins 53.If export to PDF, thenPage 1: Page 2: The first page ended 49, the second began 53. The lines 50, 51,52 disappeared. If export to RTF, you can see why the missing lines do not fit on the first page, and remain on the first page, not moving to the second page: I can not understand, why this happens? Link to comment Share on other sites More sharing options...
hozawa Posted August 24, 2017 Share Posted August 24, 2017 Are you using the latest version? Some earlier versions had a bug with font extension.BTW, your images aren't being displayed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now