Scriptcase export to pdf does not work

Scriptcase export to pdf does not work

When creating a scriptcase production environment, we must take into account the dependencies that must be ready for the pdf export operation, which uses an external program called wkhtml. Scriptcase brings a customized version, which needs some specific libraries and some sources to render PDFs

The steps to install the libraries on which depends wkhtml that comes with scriptcase 9 are:

After installing an application in a production environment, you must give the execution permission to the wkhtml that is located in:

sudo chmod 755 RAIZ_APP/_lib/prod/third/wkhtmltopdf/linux-amd64/wkhtmltopdf-amd64
Then we install the dependency libraries:

sudo yum install libXrender fontconfig libXext

And finally we install the necessary fonts to render the pdfs

sudo yum install urw-fonts

Then we can check if libraries are missing using the ldd command and if any are missing with search yum search the corresponding package.

ldd wkhtmltopdf-amd64

Leave a Comment

Your email address will not be published. Required fields are marked *