jsreport / jsreport-phantom-pdf

jsreport recipe which is rendering pdf from html using phantomjs
GNU Lesser General Public License v3.0
11 stars 8 forks source link

Report not showing properly on centos7 #24

Open ezequielzacca opened 6 years ago

ezequielzacca commented 6 years ago

I have a report wich works perfectly on windows, but when i create it on my test environment using centos7, it shows black squares instead of normal characters on centos image

same on windows image

ezequielzacca commented 6 years ago

now, after running sudo yum install freetype fontconfig on the server, it changed, but still wrong image

pofider commented 6 years ago

Please try these steps.

ezequielzacca commented 6 years ago

i changed the font on the css of the report to another font, and i installed such font on centos by copying it onto '/usr/share/fonts' folder, and after that it worked properly, the only issue i found (wich i assume is not a jsreport issue but probably a windows/linux related issue) is that the size of the fonts are different on windows and linux

pofider commented 6 years ago

Yes, this is documented phantomjs issue.