Error in installing barryvdh/laravel-snappy in laravel

Guys i installed barryvdh/laravel-snappy, i got this error after executing

The exit status code '1' says something went wrong: stderr: "The system cannot find the path specified. " stdout: "" command: "vendor/bin/wkhtmltopdf-amd64" --lowquality "C:\Users\Azasoft\AppData\Local\Temp\knp_snappy5b4dc15a0b62d5.02159522.html" "C:\Users\Azasoft\AppData\Local\Temp\knp_snappy5b4dc15a0bdfd3.38860170.pdf".

i reffered it and i found the solution that

cp vendor/h4cc/wkhtmltoimage-amd64/bin/wkhtmltoimage-amd64 /usr/local/bin/

cp vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 /usr/local/bin/

to do this.. but if i run this command in my command prompt it shows error that

cp: cannot create regular file '/usr/local/bin/': No such file or directory


is there any folder in tha name usr
kindly someone help plz
AbdulBazith
Level 4
@Clas1994 No one replied. facing the problem still.. do u tried any other method for report generation?
lostdreamer_nl
Level 50
Here's a fix.
The problem is that you're trying to use the wkHtmlToImage package on windows, even though it was made for linux.
AbdulBazith
Level 4
AbdulBazitha year ago
  • With others suggestion
    better to use barryvdh/laravel-dompdf
    Worked for me

    Post a Comment

    1 Comments

    Thanks for comment.