Output to png and pdf.