I am trying to use wkhtmltopdf with a lambda. I create a zip file with the structure and make an layer.
wkhtmltopdf.zip
├───bin
├───fonts
│ └───dejavu
└───lib
where wkhtmltopdf.exe is in the bin folder. My code,
pdfconf = pdfkit.configuration(wkhtmltopdf=os.getenv('PATH')+"/wkhtmltopdf.exe")
The error message,
No wkhtmltopdf executable found: "/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin/wkhtmltopdf.exe"
Thanks for your valuable time.
According to OP's comment, the correct path should be /opt/bin/wkhtmltopdf.exe
.