Changing the url and path retrieval to public to allow access to get pdf...

... filenames and adding an arg to the save_pdf function to specify if the pdf should be overwritten if it exists.