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
Sanu VermaSanu Verma 

How to show Pdf data in a Vf Page

I created a Vf Page and their is a Custom object in which pdf is attached. I want to show that Pdf In my Vf page form Section.Can anyone suugest me how do i approach with that. pleaze do not put any link in comment section. i want example which make me easy to proceed.

Thanks.
Raj VakatiRaj Vakati
Use PDF js to read the blob and show it as PDF 

OR 

data:application/pdf;base64,{!YOUR BOLB DATA}
 
<apex:iframe src="data:application/pdf;base64,{!BankStatement}"/>

Refer this link

https://help.salesforce.com/articleView?id=000044612&type=1
https://stackoverflow.com/questions/27952123/how-to-display-base64-encoded-pdf-in-ie​