If you change a text .doc or .docx to PDF with an online converter, you should not lose any formats during the conversion. The text, as well as the images inserted in it, will be respected based on the original file you upload.