Hi Jay,Did you end up finding a way to dynamically change the PDF file name? I can change the .ps file name using:pp.fileName = "/u/forms/purchase order/" + docName + ".ps";However I get an error when I use:pp.fileName = "/u/forms/purchase order/" + docName + ".pdf";ThanksStefan