generate pdf on contrib