Added .pdf format option