updated pdf rendering