The below code describes in an insert file into ‘Document‘ Object and gets it to Visual force page.
Step 1: Click ‘Document‘ object tab.
Step 2: Insert a file into ‘Document‘ and click ‘Save‘ button (see the below figure).
Step 3: Please add the below code in vf page. Blue Coloured url come from after click ‘view file‘ in created pdf document(Eg- Sample Pdf File).
<apex:page standardStylesheets=”true” sidebar=”false”>
<a href=”{!URLFOR(“https://c.ap2.content.force.com/servlet/servlet.FileDownload?file=01528000001oNnf“)}”>Click Here to Download</a>
</apex:page>
————————————-***** Thank You***** ——————————————