Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Rich text error

AgustinFC
Level 2
Level 2

Hi,

I am trying to use a rich text field in order to add bold/underline/italic words for a rich text field.

For that, I am using the following javascript: 

this.value.exData.loadXML(xhtml, false, true);

Where xhtml contains the complete chain: (using <b> </b> for example for bolds

  <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p><b>TEXT</b></p></body>

The PDF is generated but an error is detected when opened using Adobe Reader (Both XI and DC versions) and no text is generated for the field.

But if the same PDF is opened using Chrome, it works fine.

Any idea about this issue?

Thanks in advance,

Kr,

Agustín.


  

1 Accepted Solution
AgustinFC
Correct answer by
Level 2
Level 2

In order to solve this issue, the javascript should be executed at server side (instead of client). I guess Adobe Reader is not able to read the tags properly at client side.

View solution in original post

1 Reply
AgustinFC
Correct answer by
Level 2
Level 2

In order to solve this issue, the javascript should be executed at server side (instead of client). I guess Adobe Reader is not able to read the tags properly at client side.

View solution in original post