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
OnDem DevOnDem Dev 

How can a PDF Attachment be rendered in a Visualforce page?

Hi,

 

I have a PDF file which is uploaded as an attachment.

Now i want to render this PDF file in a Visualforce page.

I queried the attachment and used toString() method to get the String format.

But when i do this, the binary content is being displayed in the VF page.

 

How can the actual content be displayed on the VF page?

 

Any help on this will be highly be appreciated.

 

Regards,

OnDem