Closed ncjones closed 9 years ago
Pull request #6 fixes this.
@ncjones just saw your PR. Merged it.
Thanks for the patch. :+1:
@sharoonthomas FYI, you may want to look at pulling in the other changes from my fork including
@ncjones those changes look very interesting. any particular reason why you preferred to remove the JSON api ? do you have better ideas on sending options ?
It was not needed for my usecase so I dropped it. I would use HTTP headers for providing rendering parameters.
The temp file used to store the posted source HTML is not flushed before being read by the wkhtmltopdf process. This results in an incomplete view of the uploaded HTML file being rendered. In the case of small files it always results in an empty PDF being generated.
For example, the following command will unexpectedly produce an empty PDF document (assuming app listening on port 8090):