You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you're encountering an error when running your Go code that involves generating a PDF using wkhtmltopdf. The error message "fork/exec /usr/local/bin/wkhtmltopdf: exec format error" suggests that there is an issue with the executable file for wkhtmltopdf.
To fix this issue, you may want to check that wkhtmltopdf is installed correctly and that its executable file has the correct permissions. You may also want to ensure that you have the correct version of wkhtmltopdf installed and that it is compatible with your operating system. Additionally, you could try specifying the full path to the wkhtmltopdf executable file in your code to ensure that it is correctly referenced.
I hope this helps! Let us know if you have any further questions or concerns.
I run: go run main.go
//generate pdf function
func (r *RequestPdf) GeneratePDF(pdfPath string) (bool, error) {
t := time.Now().Unix()
// write whole the body
}
The text was updated successfully, but these errors were encountered: