Convert the doc to pdf