@Shashikant Hope problem will occur with both cases : using getContentAsPDF and renderAs="PDF". Just looking into the solution. Something related to displaying field on visualforce page which is rendering as PDF, should try using outputfields.
I have tried to replicate the same in my org, I get the HTML tags return as well in the Visual force page if I change the datatype of the field to rich text field. It is Working as Designed, it is the way the rich text field behave in a VF page.
I asked to clarify the issue with mext Tier because this mean the Rich Text can not be used in PDF documents normally and Rich text content will be showed in PDF not like "Rich text" but like HTML code...
I got this to work by using <outputText "escape=false" />
All Answers
Are you using getContentAsPdf Method to generate pdf?
@Shashikant Hope problem will occur with both cases : using getContentAsPDF and renderAs="PDF". Just looking into the solution. Something related to displaying field on visualforce page which is rendering as PDF, should try using outputfields.
I would suggest you one thing. Don't use outputfield or inputfield use value like this :
<apex:outPutLabel>
{!.........}
</apex:outPutLabel>
Let me know if it doesn't help you.
Please try like that.
<apex:outPutLabel value="{!}">
</apex:outPutLabel>
Let me know if it doesn't help you.
Both outPutlabel and outputText give the same result.
Hello,
I have the same issue
SFDC support responded:
I have tried to replicate the same in my org, I get the HTML tags return as well in the Visual force page if I change the datatype of the field to rich text field. It is Working as Designed, it is the way the rich text field behave in a VF page.
I asked to clarify the issue with mext Tier because this mean the Rich Text can not be used in PDF documents normally and Rich text content will be showed in PDF not like "Rich text" but like HTML code...
Also Vote for Idea "Support export of Rich Text Field to PDF"
https://sites.secure.force.com/success/ideaView?id=08730000000bab5AAA
I got this to work by using <outputText "escape=false" />
Yes it's works. Also SF going to fix other issues while PDF generation fronm Rich text field.
excelent, it works for me :)
excelent, it works for me :)