add ability to select file type. supporting ps, jpg, pdf. also allow force to overwrite generated files