pdf.Diagram for view, and xml.Diagram for changes