wkhtmltopdf
wkhtmltopdf copied to clipboard
Generate and return PDFs from Vapor views
Converts the main `generatePDF` to async/await
Currently I use `/tmp/vapor-wkhtmltopdf.[UUID].html`, but `mktemp()` would be more portable.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
Small fix for `Pipe()` error when calling process multiple times and obtain `Bad file descriptor` error commented here: https://github.com/apple/swift/issues/57827 Also update swift version to 5.8 and updated `Process()`deprecated methods.