I have a donation object which have a donation receipt attached to each record. Now how to render the receipt.pdf attachment on visualforce page ? I mean is there any way to query the attachment and show on visualforce as pdf ?


Most common way to do so:

<iframe src="data:application/pdf;base64,{!PDF_Doc}" alt="Undable to display pdf" width="100%" height="400px"/>

Additional information here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.