[SalesForce] Preview PDF file on visualforce page

It is possible to show the first page of an PDF attachment on a visualforce page like a preview?

I have a custom object with some information and a link to a PDF file which is stored in salesforce. I have a list of all these items and I wanna show the first page of the PDF.

EDIT

<object
    data="/servlet/servlet.FileDownload?file=0698E0000008oIpQAI"
    width="100%"
    style="height: 100px; border: 1px solid grey;" 
    type="application/pdf"
    />

I add this code, but It doesnt work, I just see the border. The file is stored as file and attachment in the custom object.

Best Answer

I have used the object tag to display a PDF static resource so I assume this will work for your PDF link:

<object
        data="{!linkToPdfFile}"
        width="100%"
        style="height: 500px; border: 1px solid grey;" 
        type="application/pdf"
        />

PS

Based on the comment thread, I think this is what worked for peXeq:

<apex:iframe src="/servlet/servlet.FileDownload?file={!attachment.id}"/>