############################################################################ Function to Convert any Html File into PDF Can save into a pdf file on server, or stream to the user's browser If you want to stream to the browser: $objClass->fnURL2PDF("http://www.yahoo.com", "pdf.pdf"); If you want to save on the server: $objClass->fnURL2PDF("http://www.yahoo.com", "", "../folder/filename.pdf"); Usage