i have uploaded a pdf file using document object in salesforce. i am using the below code to display that file in my browser. my requirement is to show only the first two pages of that file in the browser.
<apex:repeat var="dc" value="{!details}">
<tr>
<td><a target="_blank" href="https://c.ap1.content.force.com/servlet/servlet.FileDownload?file={!dc.id}" onclick="return windowpop(this.href, 545, 433)"> {!dc.Name} </a></td>
<td>{!dc.Type}</td>
</tr> </apex:repeat>