Laravel 使用 laravel-snappy 包時 windows 怎麼測試的 啊?

playmaker發表於2021-04-09

環境 win10 或 linux docker
目前windows和linux測試顯示都報同樣的錯
是哪裡缺少啥嘛?
composer require h4cc/wkhtmltoimage-amd64 0.12.x
‘binary’ => base_path(‘vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64’)
composer require barryvdh/laravel-snappy

"The exit status code '127' says something went wrong:\nstderr: \"/etc/php/public/fonts/wkhtmltopdf-amd64: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory\n\"\nstdout: \"\"\ncommand: /etc/php/public/fonts/wkhtmltopdf-amd64 --lowquality '/tmp/knp_snappy606fe01b02f503.67476917.html' '/tmp/knp_snappy606fe01b031459.23222424.pdf'.",
本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章