When creating a PDF all the js/jquery code is fired prior to generation of the file. However I am seeing that not to be the case for PNG image creation.
Here is a sample file to see if you reproduce it:
https://dl.dropboxusercontent.com/u/90348/PDFvsPNGCreation.htmlThanks for your time.
Craig