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
Views
Replies
Total Likes
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
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-textfield-in-designer/
hope this helps.
regards,
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:8pt;text-decoration:none">Test Info</p></body>
Views
Replies
Total Likes
Hi All,
Thanks for the help and I am extremely sorry for the late reply as I was carried away by the other project priorities here.
Parth Pandya's sample was help and I just tried the 2nd method that tries to render Richtext through XML envelope and javascript code from DB becasue that suits my need very well as my PDF content is completly processed at server and sent to browser as PDF bytes to render a PDF document for viewing purpose only.
But I have trouble in executing the javascript in the PDF form and it generates the PDF without richtext conversion. It is not executing a simple alert message and then later I understood, LC Output generated PDF will not execute javascript. I need help in executing javascript with LC Output at server-side. I just went through the various help documents to understand how to execute javascript in LC Output generated PDF that is originally XDP for desinged in LC Designer ES 8.2, but nothing worked and confused with various javascripts associated with each tool. So please advise me that what I am missing here and how to achive this.
My Goal: I am building a proof of concept .Net App to find whether we can replace the exisiting Crystal Reports Templates with Adobe LiveCycle Output Service based one to generates the final invoice PDF from XML data. The idea is to bind XML data to with XDP form and render the final Invoice PDF(able to render the raw data other than Richtext). I don't know whether all features Crystal Reports Templates are possible with LC Output but right now I am struggling to render Richtext through LC OutPut Service and proceed further.
Thanks
Vijay
Views
Replies
Total Likes
My web application allows this Richtext/Formatted text submission and to store the same in DB then its rendered in PDF through Crystal Report Template renderring and now that I am trying the same with Adobe LC Output Service.
Thanks
VKG
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies