Handle PDFs as application/octet-streams.
Exit with returncode if wkhtmltopdf fails.
Handle missing embedded images.