wkhtml2pdf basically just reuse rendering engine used in browser. if ur html is good, the pdf will be fine. how is it hard to debug?
maybe because u populated the table before deletion?
what... /usr/sbin aint in the $PATH?
can use wordpress api right?