+ Start a Discussion
SjaleelSjaleel 

Replacing image in PDF document

Hi,

In our Dev Instance we are generating PDF documents for certain custom objects, and in these pages we have Logo image placed in the document.

 

And as new instance are installed  we want the user to replace the logo with their own.

 

The image is stored in static resource and cache control set to public

 

Im not sure how to handle this.
Any pointers will be of great help. ANy work around is greatly appreciated.

Regards and thanks in advance

 

S.AJ

SFFSFF

You'll need to store the user's image in a Document rather than a Static Resource, and let the user designate which Document to use in either a Custom Setting or custom object. (Regular users won't have access to Static Resources.)

 

Hope this helps,

SjaleelSjaleel

I tried using a URL field in a custom object where the URL points the storage website where the image is stored. In my case I tried using Picasa. 

 

And in the VF page I access the logo field  like any other fields from the custom object, 

this is my tag for the image

 

<apex:image url="{!parentAC.Logo__c}" width="25%"/>

 

When to the remote Site Settings and added the url where the image is saved, Picasa in this case.

The image appears to be broken, although when I click on it it directs to the image page in Picasa, any solutions for this, or what I meight be doing wrong?

 

Regardsa and Thanks in advance

S.Aj