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
Paul09Paul09 

Display PDF in visual force

Hello Board,

 

I have a PDF document on my desktop. How can I render it in visualforce page?

 

Any help is appreciated with KUDOS.

 

Thanks in advance,

gautam_singhgautam_singh

Hi,


You have a PDF doc and you mean to render it over Visualforce Page. Correct ?
Follow the Below Steps :-

First You need to upload the PDF into Salesforce and then after that try using  apex:iframe tag.

When you click on View Attachment , It shows the PDF file in Browser , Pass that URL inside the above tag . It will work correctly


Important :

Click on the Star Icon aside if this post provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You