modified to output pdf vice png

Modifications to output PDF vice png.