Activity Forums Salesforce Questions and Answers Want to show a text area field on Visualforce with some different format as compared to on PDF

  • Want to show a text area field on Visualforce with some different format as compared to on PDF

  • Rachit

    Member
    April 14, 2016 at 9:26 am

    Want to show a text area field with value on Visualforce with some different format as compared to on PDF.Is this possible as my format in PDF is a bit clumsy???

  • Utsav

    Member
    June 9, 2016 at 12:28 pm

    Hi Rachit

    If you are rendering a VF page as Pdf and wants to show some different format values on Pdf page as compare to Vf page then use following things in code:

    1. Use paremeter based rendering on VF page

    renderas="{!if($CurrentPage.parameters.p == null, null, 'pdf')}".

    2. Use an outputpanel based on this parameter p and rendered that panel only if p==1

    which means you can seprate values from VF page to Pdf page.

     

    Hope it helps

    Thanks

Viewing 1 - 2 of 2 posts

Log in to reply.

Original Post
0 of 0 posts June 2018
Now