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

Rich text error

Avatar

Avatar
Validate 1
Level 1
AgustinFC
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
AgustinFC
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
AgustinFC
Level 1

14-12-2015

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.


  

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
AgustinFC
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
AgustinFC
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
AgustinFC
Level 1

16-12-2015

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.

Answers (0)