Document

View/Open a file in Document Object

Hi Folks

This post will help you to view or download (if its a word doc) a file in Visualforce page from the Document objects.

I had a requirement that when i click on a link in Visualforce page, it should open a file from Document Object in new tab. For example - Click on Terms&Conditions link. 

Follow the steps to do this:

Step 1: Add a pdf file in Document Object in Salesforce Org. For Eg: Add a pdf file in Document Object in the name of Terms And Conditions.