This function could act as a file converter as below
printFileToPDF( filename, [newPDFfileName], iFileType)
eg
printFileToPDF ("c:\myFile.doc", iWordDoc) // will produce c:\myFile.pdf
printFileToPDF ("c:\myFile.doc", "c:\otherDir\myNewFile.pdf", iWordDoc)
iFileType could be:
iWordDoc
iXLSDoc
iHTML
iRTF
iXML // will print out like a table Form rather than xml file look
i ...etc..