Skip to content

Conversation

@alanhamlett
Copy link
Collaborator

We shouldn't always .decode('utf-8') the pdf contents, because it will be binary data. Only try to decode after wkhtmltopdf returns a non-zero exit code. This prevents setting the pdf contents to empty string when no error occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant