Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Rich text error

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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.