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
suri03081988suri03081988 

How to display URL as a text on PDF

Hi All,

I am trying to display some URL on PDF (Rendered as PDF), but my URL displaying as a link type text, means if i do mouse over on that URL content its showing the hand symbol and user can able to clickable that text, but i want to display this a just text not a clickable text. My sample code is in below

<apex:page showHeader="false" sidebar="false" standardStylesheets="false" renderAs="pdf" >  
  <apex:form >
      <apex:outputLabel value="URL :  "/> 
      <apex:outputText value="www.salesforce.com" />
  </apex:form>
</apex:page>

Please advise me how i can solve this

Thanks
bob_buzzardbob_buzzard
That sounds like the PDF client is being helpful and converting the URL to a link - I know that Adobe does this on the assumption that if there's a link a user is likely to want to click on it rather than copy/paste. Not sure there's much that you can do about this, aside from something lateral like creating an image containing the link text.