PDFKit uses wkhtmltopdf to generate the pdfs based on a webkit render of the page. There is a --javascript-delay params that looks like it could be used to delay the generation for the client side to finish.
Try this in pdfkit.rb
config.default_options = {
:javascript_delay => 5000
}