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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

millerdk12
millerdk12
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts & Comments

Posts & Comments
1

Discussions

Discussions
0

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by millerdk12
Customize the badges you want to showcase on your profile
Re: HTML to PDF <pre> tag not converting well - Adobe LiveCycle 25-09-2020
Hello, I was running into the same issue with displaying text and HTML based emails in the same rich text field. I could not get a CSS/HTML solution, but replacing all newline characters worked to preserve the spacing. Here is the function I use to properly process and display HTML in a rich text field.function formatRichTextField(field) { var rawText = field.rawValue; rawText = rawText.replace(/\n/g, ''); var envelope = "" + "" + rawText + ""; field.value.exData.loadXML(envelope, 1, 1); } Credi...

Views

255

Likes

0

Replies

0