Diagram export to PDF/PNG.