Question

1
Replies
246
Views
RakeshS6765 Member since 2014 15 posts
Infosys
Posted: 2 years ago
Last activity: 2 years ago
Closed

Convert HTML Content to RTF

HI All,

I have a requirement to send text in RTF format to down stream system. We are using a Rich text editor to capture the text and the same text has to go to down stream system in RTF format.

by default Pega convert the Rich text editor content to HTML format. Is there any way we can convert HTML to RTF format ?

below is one example of RTF format which down stream system is expecting:

<![CDATA[{\rtf1\ansi\ansicpg1252\deff0\deflang2067\deflangfe2067{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}{\f1\froman\fprq2\fcharset2 Symbol;}}

{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang1033\f0\fs22 Free tekst communication document as RTF, which will add into the XML file as CDATA.\par

\ul\b Text format is limited.\par

\pard\fi-360\li720\ulnone\b0\f1\'b7\tab\f0 Bullets 1\par

\f1\'b7\tab\f0 Bullets 2\par

\pard\sa200\sl276\slmult1\i\par

Italic text from RTF example\par

\i0 Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book. It usually begins with: \par

\ldblquote Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\rdblquote\par

The purpose of lorem ipsum is to create a natural looking block of text (sentence, paragraph, page, etc.) that doesn't distract from the layout. A practice not without \ul\i controversy\ulnone\i0 , laying out pages with meaningless filler text can be very useful when the focus is meant to be on design, not content. \par

The passage experienced a surge in popularity during the 1960s when Letraset used it on their dry-transfer sheets, and again during the 90s as desktop publishers bundled the text with their software. Today it's seen all around the web; on templates, websites, and stock designs. Use our \ul\b\i generator\ulnone\b0\i0 to get your own, or read on for the authoritative history of lorem ipsum.\par

}]]>

User Interface
Moderation Team has archived post
Share this page LinkedIn