Hello Everyone, In this tutorial, I am going to provide a sample code that explains you, how to break word while writing large sentence in visualforce page when it's page property set "renderAs=PDF".
Break word in visualforce pdf
<apex:outputtext escape="false" style="word-wrap: break-all;" value="{!HTMLENCODE(Sobject Field Value)}"/>
Note: Don't forget to set standardStylesheets="false" in Visualforce page.
Hope you like this post, for any feedback or suggestions please feel free to comment. I would appreciate your feedback and suggestions.Thank you.
0 Comments
Post a Comment