Hi, I'm using phantomjs to export PDF. Both your example and my script work fine with a Windows machine but the pdf file is always empty with a docker linux container on a linux server. I tried to run the command from shell (inside the docker container) and it returns the empty pdf too. The command is:
/var/www/html/40assistant/40assistantResources/koolreport/packages/export/bin/phantomjs --ignore-ssl-errors=true /var/www/html/40assistant/40assistantResources/koolreport/packages/export/pdf/pdf.js /tmp/5ca08547b7add2.tmp /tmp/5ca08547b7ce83.pdf eyJmb3JtYXQiOiJBNCIsIm9yaWVudGF0aW9uIjoicG9ydHJhaXQiLCJleHBlY3RlZExvY2F0aW9uIjoiaHR0cDpcL1wvMTAuOC4xLjEwOjg4MFwvNDBhc3Npc3RhbnRcLzQwYXNzaXN0YW50UmVwb3J0c1wvcmVwb3J0X2Zhc2lPcmRpbmlBdHRpdmlcL2V4cG9ydC5waHA/bG90dG9faWQ9MTQiLCJyZXNvdXJjZVdhaXRpbmciOjEwMDB9
I'm not able to solve this problem. Any clue? Thank you