Added support for generating svg and pdf output