Chinese characters not rendered properly on PDF report (phantom-pdf recipe)

  • The problem seems to appear only on our production server (Windows Server 2016) when executing with the phantom-pdf recipe.

    When running any pdf report with dummy data from jsReport studio, the Chinese characters are not rendered properly, they seem to be cut in half, not able to be dragged/copied by the cursor, like they are rendered as a picture and not as letters.

    The error does not occur with html-to-xlsx recipe with the same data source file and also it does not occur at all on local machine (Windows 10 Pro), running the same jsReport project, using similar configuration files.
    Examples of faulty (production server) and correct (local machine) exported pdf reports are attached (WeTransfer link).

    I understand this could be a problem not related entirely to jsreport, as it's working properly on the local machine, but I haven't been able to find a solution for a long time, so any help would be much appreciated, thanks.

  • Hi, maybe windows server 2016 is missing some fonts. However don't know how to find out.

    You can try to use chrome-pdf recipe.
    Or try to search in phantomjs repository, perhaps there is this thing mentioned.

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.