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
Btuitasi1Btuitasi1 

Display PDF in Visualforce page

Is possible to display a PDF file stored as a Static Resource in a visualforce page? I am creating a User Agreement page that would need to show the PDF and a form with a checkbox underneath it acknowledging their agreeement to proceed. I am thinking of creating a separate page that displays the PDF and embedding that in the master page. 

Any ideas?

Thanks!!
SonamSonam (Salesforce Developers) 
use the following code to get the PDF in an iframe on the VF page where you can then add the checkbox::

<apex:page sidebar="true" showHeader="true" standardStylesheets="true">
<apex:iframe width="1000" height="1000" src="{!URLFOR($Resource.Addev)}"/>
</apex:page>
// here Addev is the PDF file i've saved as a static resource
Hope this helps!