How should I do to make a document viewable on a webpage, that is exported from SP2013 document library. A user should be able to, through a webpage send a request to view the content of a specific document. .DOC .PDF for example.
My searches so far has pointed me towards REST and JSON.
Would really appreciate someone pointing me at the right direction.