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
Rajasekhar TRajasekhar T 

How to add Rendering attachment on PDF Document

I want the attachments to display like a single pdf. suppose i have 1 image file, 1 pdf and 1 text file then i want to display them into a single pdf.
 Is it possible? If yes how can i go for it?
NagendraNagendra (Salesforce Developers) 
Hi,

How about looping over them and blatting out each one in an iframe?

AccountAttachments.page
<apex:page standardController="Account" sidebar="false"> <apex:repeat value="{!Account.Attachments}" var="attachment"> <h1>{!attachment.Name}</h1> <apex:iframe src="{!URLFOR($Action.Attachment.Download, attachment.Id)}" height="200" /> </apex:repeat> </apex:page>
Hope this helps.

Please mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
 
Rajasekhar TRajasekhar T
Thank you for your help Nagendra. i added above you mention code. but in site mode not working