Convert CD format to HTML

Is there any way of automatically converting or processing Lotus Notes messages, in CD Format, and output these in HTML format?

Any pointers, help or suggestions appreciated.

Subject: Convert CD format to HTML

There are a few different ways, of varying degree of fidelity, difficulty and expense.

  1. Use the HTTP process. This can be done either by putting the document on a Domino server or using the Designer Preview HTTP mode. With either, you can use GetDocumentByURL to grab the document, and then extract then HTML from there. Not very difficult, not high quality fidelity, not very scalable, very inexpensive, issues with images and sections and such that are referenced “in situ”. Gives you the whole document at once unless you create a special document with just the rich text field and use that.

  2. Set the rich text field setting to save as MIME and HTML. When the document is saved, it will be stored as MIME parts, and you can retrieve the HTML one by using NotesMIMEEntity with standard classes. Not very difficult, not high quality fidelity, fairly scalable, very inexpensive, issues with rich text always being “dumbed down” including loss of doclinks, etc., and images stored as MIME parts may be hard to retrieve. Give you the rich text field without the rest of the document unless you RenderToRTItem first, which is tricky to get working with these fields.

  3. Export to DXL and convert to HTML using XSL. Very difficult, very limited rendering, very inexpensive, leaves original rich text alone, and images stored in BASE64 encoding may be hard to retrieve. Gives you the whole document or the rich text field.

  4. Use a third party product such as our Midas Rich Text LSX. Easy to use, high quality fidelity with good control, more expensive, relies on third party product, lots of choices about what to do with images and such. Gives you the rich text field unless you use RenderToRTItem, but will do that without saving document (unlike standard method).

Hope that helps.