changing pdf diagrams by sag