I'm trying to figure out how to generate a PDF from HTML that contains charts generated with the flot javascript library. Dompdf was my original conversion library but after adding flot charts it fails miserably. I've looked around SO (particularly at https://stackoverflow.com/questions/3178448/list-of-html-to-pdf-converters) and googled for a while but can't seem to find any that explicitly provide javascript support. I'm working in PHP. I saw someone mention in that post that they had used php-wkhtmltox successfully in all cases but a chart generated by a different javascript library. Is that my only chance? I could possibly pay up to a couple hundred dollars if there is a commercial option available.
If this is something that really isn't possible with current libraries, what exactly is the challenge that makes it so much harder to convert html generated by javascript vs. normal html?
Thanks