Output('PurchaseOrder.pdf','D'); //added file name to make it work in IE, also forces the download giving the user the option to save exit(); ?>