1

We want to create a link to a pdf file which is accessible from outside Salesforce.
I have found following description but have no success when trying to follow these steps:

  1. Save your document in a static resource.
    1. Write click on the "View file" link and copy the link location from the attached Static Resource Detail page.
    2. Create a Public Site if you do not have already.
    3. Create a public link using copied link location and Website URL.
    4. Website Site URL/Paste your copied link location, the link should be look like this http://vk-developer-edition.ap1.force.com/resource/1303802742000/TestPDF

source: https://developer.salesforce.com/forums/?id=906F00000008pAqIAI

The points are a bit unclear to me...
And is this still the way to go?
Especially point 4. is unclear to me

Thanks

2

Try this, I have tested this and worked as expected with proper URL:

<apex:outputLink value="{!URLFOR($Resource.PDFDemo01)}" > PDF Link </apex:outputLink>               

Also successfully accessed it from other HTML:

<a href='http://abs01tp01-developer-edition.ap2.force.com/PublicSiteDemo01/resource/1492074880000/PDFDemo01'>Click for PDF</a>

I hope this may help you

|improve this answer|||||

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.