Ehh..think i figured it out, still not sure why sample I have works. Right before the htmlFileToPdf is called I set the document in my list of documents to a temp variable then i set the attributes of that document to a file.
setDocAttribute(/process_data/@tmpHTMLDoc, "file", "Temp.html")