A PDF or a word document are standalone files. You can offer them to viewers as links to that document via the steps below.
If you want to display the contents of a PDF or document with in your website then you need to copy the contents or recreate the contents of these documents into a web page using the content editor.
URL Wizard that shows the Attach new public file link.