I am trying to create an application that will take an html file that is populated using a jquery get request. I am making an http get request to get the html, passing the string to the pdf.create function and using the generated buffer to send a pdf file via email. This seems to process and send the file off as an email attachment, however, when I try to open the file I am receiving an error saying the file is corrupt. I am trying to create an application that will