Save a file as a PDF