A pdf created using jasperreport that does not show Linux very well, but yes, on a Mac, can I link os?

The PDF I generate with jasper reports does Ok on my MAC, but some shortcuts show an error on Linux. For example, I have a static label that does not display completely on linux (only part of the whole word), but yes on Mac. Can the OS be somehow connected? What is the usual source of this kind of problem?

+2
source share
4 answers

Missing fonts on your Linux machine can cause such problems. I had the same thing when creating PDF files with iText.

+3
source

PDF ! ...

: PDF Arial , Windows , , Helvetica Linux ( ), .

: PDF !

+1

, Docmosis, PDF , - . , - doc odf , . , , , , (, , ).

0

Helps fotn to PDF in Helvetica (SansSerif) - this is MS Arial.ttf. The problem is that it is not available on the Linux machine by default. Copy it to / usr / share / fonts (and update fonts.dir) or put it in the Linux JRE installation in the fonts / folder (and update fonts.dir). If you do not want to use MS Arial, try GNU FreeFont http://ftp.gnu.org/gnu/freefont/

You can embed fonts in PDFs, as Daniel advised, but it makes PDFs bigger.

0
source

Source: https://habr.com/ru/post/1652086/


All Articles