Skip navigation
VKG7
Currently Being Moderated

How to render Rich Text/Html content in PDF through .XDP form

Aug 5, 2009 10:31 AM

Hi all,

 

I have designed an Invoice.XDP form and connected to a XML/XSD file for data.

 

Now I dragged data fields from DataView to Invoice.XDP form to create required Text Fields.

When I generated PDF from LiveCycle OutPut ES service it renders all fields with data.

 

In the Invoice.XDP form some of the fields are required display Richtext /Html content, for those fields I changed object property to "Rich Text" from "Plain Text Only". Even after doing this the formatted text (Richtext /Html) is not displayed and it just displays only raw HTML text tags.

 

I have attached the sample "Invoice_RTF.pdf" generated for reference here.

Please advise me how to render the Richtext /Html content.

 

Thanks in Advance

VKG

Attachments:
 
Replies
  • Currently Being Moderated
    Aug 5, 2009 12:33 PM   in reply to VKG7

    While waiting for your file to become free - how is the HTML getting into the data file. You may want to open your form and enter the richtext field. Then hit Ctrl-E and a menu will come up and allow you to modify your text in th efield with all of th erich text options that are supported. Then export your data and compare the richTextField that was created by the product to the one that you are using. You will more than likely need to add this line to the data file:

     

    <

     

     

    body xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2009 5:57 PM   in reply to VKG7

    Hi VKG,

     

    if your data is coming from a database query or some other backend then you might have to do little bit more.

    I've written a blog entry to explain how its done. Here it is http://blog.pandyaparth.com/?p=65 or http://livecyclekarma.wordpress.com/2009/05/20/richtext-tricks-for-tex tfield-in-designer/

     

    hope this helps.

     

    regards,

    Parth Pandya

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 6, 2009 4:17 AM   in reply to parth pandya

    I usually do as Paul described.

     

    Here is an example:

    <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="Acroform:2.6.7120.0" xfa:spec="2.1"><p style="margin-top:0pt;margin-bottom:0pt;font-family:Arial;font-size:8 pt;text-decoration:none">Test Info</p></body>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points