Added parameter to save pdf file on the server.
Updated version