Update method to convert to pdf