I am displaying all attachments in a Visualforce Page with renderAs="pdf". It displays the attachment if it is an image but not if it is a pdf. I am using an iframe to show the pdf attachment but it is not working within a pdf. Is it possible?

  • pdf inside pdf ? I don't think you can do that.. What you can do query all the attached pdf get all the blob data and create image with those data.. and display in parent page... I am not sure just assuming .. This can be a way
    – Ratan Paul
    Commented Jan 7, 2016 at 15:00
  • You would be better off linking other PDF attachments for reference. Useless in print but it might help depending on your use case.
    – Adrian Larson
    Commented Jan 7, 2016 at 15:05

1 Answer 1


It's not possible to render a PDF that contains another PDF inside of it. The Salesforce PDF render engine can't render a Blob image. Any images need to be standard formats such as JPG, PNG, GIF, or TIFF images. There might be a few others that are supported as well, but definitely not blobs.

An existing PDF will essentially contain a wrapper around a JPG along with additional information about how to display and print it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .