get document from internet and change it to different format