aur1mas/Wkhtmltopdf — Issue #10: Output not fully written to file
Author: yourivdlans
Created: 2011-11-09 14:06:37+00:00
State: open

Hi,

I was looking for a nice way to convert some HTML pages to pdf, and your class looks like a great way to work with wkhtmltopdf. After trying a few things i got it to output a pdf file, although those were corrupt.
When generating the same pdf through the command line it would output a correct pdf file, and while comparing the two it became clear the one generated by your class had been cut off.

I then found out if i would use strlen instead of mb_strlen for the content-length headers it would output correct pdf files.

Does anyone else have the same issue?