function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nandananandana 

Hi... How to display pdf first page or word first page(or thumb nail) in sales force visual force pages.

Arvind KumarArvind Kumar
Hi Nandana,

Follow the below link. You can render a Visualforce page as pdf.
1.) http://www.sfdcpoint.com/salesforce/visualforce-page-render-pdf/
2.) https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm

RenderAs:
This is used with page component and renders the page in the specified format. 

The following page will give output in pdf form /render as pdf.

Visualforce Page:


<apex:page standardController="Account" renderAs="pdf">
     <apex:pageBlock >
          <apex:outputField value="{!Account.name}"/>
          <apex:outputField value="{!Account.AccountNumber}"/>
     </apex:pageBlock>
</apex:page>

Follow the above link & code. It will help you.

Thanks,
Arvind Kumar