Monday, 25 November 2013

Caution while rendering html link on Visualforce PDF’s

As we all knows that rendering engine doesn’t support javascript generated elements. The following logic also will fail to redirect the user.

<apex:image url="{!$Resource.PDFImage}" onclick="'');" width="550" height="50"/>

The better approach here is the following line of code which works perfectly in this scenario.

<apex:page renderAs="pdf" >
<apex:form >
<apex:outputLink value="">Click Here</apex:outputLink>
**Caution: Use https instead of http while referencing the link

Also as a best practice use images from static resources while rendering pdf


  1. Your providing such a valuabe information about studying..and also have some good key points to every

    Salesforce Interview Questions |

    Salesforce Training Videos

  2. Wonderful article, very useful and well explanation. Your post is extremely incredible. I will refer this to my friends to visit your post

    Seo Training in Chennai

  3. Very nice post here and thanks for latest smartphone applications it .I always like and such a super colors of phone for these post.Excellent and very cool idea and great models and different kinds of the more information's.

    digital marketing course in chennai

  4. It’s the best time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I want to suggest you few interesting things or suggestions.You can write next articles referring to this article. I desire to read even more things about it..
    Best Accountants Melbourne
    Accountants Melbourne
    Melbourne Accountants