Announcing Cradle-7.2 - start your free trial here

November [Cradle-7.0]

RTF Viewed in Web Access

Custom Web Access forms and Web Access view templates can now include the new web tag:

WEB_RTF mode=pdf %%Framename%%

This tag will be replaced with a PDF viewer code and a generated PDF of the RTF frame.

You can also set the mode to HTML so you can produce HTML output instead of PDF.

WEB_RTF mode=html %%Framename%%

The output can be included in both Web Access frames and views. Even though it can be used in Web Access views it is not recommended to just embed the RTF converted frame in each row. There is an example provided using a button that can open the RTF frame.

To allow HTML and PDF formats of the RTF frame to be generated Cradle ships with two converters unrtf and wkhtmltopdf. The converters can be configured through the cws_config file.

unrft is used to convert the RTF frame into HTML. wkhtmltopdf is used to convert the HTML into PDF.

Examples

RTF frame output in a web form as HTML:


RTF frame output in a web form as HTML

RTF frame output in a web form as a PDF:


RTF frame output in a web form as a PDF

RTF frames output in a web view as HTML - if you had a lot of items with large RTF frame data this would be very slow to render:

RTF frames output in a web view as HTML

RTF frames output in a web view as PDF documents - if you had a lot of items with large RTF frame data this would be very slow to render:

RTF frames out in a web view as PDF documents

Items that have RTF frames that will show the RTF data when the button is clicked - this would be the recommended way to show RTF frames in a web view:

Items that have RTF frames that will show the RTF data when the button is clicked

Topics in this Newsletter:

Common Topics