• JO858
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I am creating a visualforce page that renders as pdf and I am trying to include an image but am running into an issue.  I have tried to store the image in the static resources, as well as in a document folder but neither option works. 

 

When I am logged in as the system admin the image appears on the PDF, but if I log in as any other user it appears broken. 

 

Below is the code on the visualforce page for image:

 

From Document library:

<center>
     <apex:image value="/servlet/servlet.FileDownload?file=015S000000Hz2u" width="262" height="50"/>
</center>

 

From Static Resources:

<center>
     <apex:image value="{!resources.logo}" width="262" height="50"/>
</center>

 

Any help would be great!

  • October 29, 2010
  • Like
  • 0