Need support for the objattph tag in the RTF Reader
Posted: Sat Oct 22, 2005 7:54 pm
I need support for this tag, which is used by Microsoft when Word is used as email editor.
The object is discussed in here:
http://www.biblioscape.com/rtf15_spec.htm
http://www.tech-archive.net/Archive/Dev ... /0232.html
http://groups.google.com/group/microsof ... 8b84af2db5
To cut things short, a description of this tag.
The tag is used in this manner:
The tag defines a placeholder for image data. The actual image is not saved in the document, but the image is requested when this tag is found. Everytime the tag is encountered, the event to ask for the image needs to be fired with an index number. This index number is the Nth-1 time the event is called, so the first time this is 0, the second time this is 1 and so on.
The event then fills a stream provided in the event handler with the data from the attachment.
Sample document:
The object is discussed in here:
http://www.biblioscape.com/rtf15_spec.htm
http://www.tech-archive.net/Archive/Dev ... /0232.html
http://groups.google.com/group/microsof ... 8b84af2db5
To cut things short, a description of this tag.
The tag is used in this manner:
Code: Select all
\objattph\'20
The event then fills a stream provided in the event handler with the data from the attachment.
Sample document:
Code: Select all
{\rtf1\ansi\ansicpg1252\deff0\deftab360{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Riched20 5.40.11.2212;}\viewkind4\uc1\pard\lang1043\f0\fs20 This is a test with an \objattph\'20image. \par
Very cool stuff indeed\par
\par
\par
And this is an \lang1033\objattph\'20embedded document\par
}