Generates pdf and png result files