mileszs/wicked_pdf — pull request #278 by Figedi (2013-12-23 13:47:48+00:00)
Title: Option to track console progress

I totally forgot about pull-requesting this. Anyways I've found it handy to be able to track the output of wkhtmltopdf from the console, in order to display the overall progress of the pdf creation.

This could be used to implement realtime-updates for the enduser, thus providing a much nicer feedback. Since the actual implementation of the user-feedback is application-dependent, one can use the newly created `progress`-Proc in the pdf options hash, which gets called every time the console has a new line/update (wkhtmltopdf supports a 0-100% progress bar from command line which you can easily parse with regex or whatever you like).

Note that this is **NOT a windows** feature, as windows doesn't have PTY and I currently don't know how to implement this on windows machines. On the other hand, I doubt that this is a great loss.