function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Links in Visualforce Page Rendered as PDF

It appears that any links in a Visualforce page that is rendered as pdf are not hyperlinks in the pdf.  They have a line underneath them but you cannot click on them.  Is this standard functionality or am I missing something?  I simply put an outputlink component on the page and it was not clickabled.  Thanks for clarification.
Best Answer chosen by Admin (Salesforce Developers) 

All Answers


Are you sure? I just tried it with this and it worked in my generated PDF page.


<apex:outputLink value="" id="theLink">Google</apex:outputLink>


Are you doing something different?




Message Edited by shillyer on 02-03-2009 03:07 PM

I think it has to do with relative path's.  If I put this line in there it doesn't work.



<apex:outputlink value="/{!Event.ownerid}">{!}</apex:outputlink>


 If I put a full path in there it works.  See below.



<apex:outputlink value="{!Event.ownerid}">{!}</apex:outputlink>


Is this a bug?  If I don't render as a PDF the relative paths work fine.




It looks like a feature to me than a bug. Imagine saving the PDF after it is rendered and opening it later. Or you could send the pdf to someone who then opens it in which case the link with relative path doesn't make sense.
This was selected as the best answer