diagram and pdf