add option to set default output format

current choices are pdf or svg