开发者

Truncation of keywords in RTF file

开发者 https://www.devze.com 2023-01-31 07:01 出处:网络
we are embedding data in the \\keywords field of a RTF file. The \\keywords tag is updated in the file with sort of \"String replacement\", not by using any kind of RTF API.

we are embedding data in the \keywords field of a RTF file. The \keywords tag is updated in the file with sort of "String replacement", not by using any kind of RTF API.

It appears that when we open the RTF file in Word 2007, the keywords property of the file only display the first 520 characters of the \keywords tag. If I edit this field directly from Word 2007, with more than 520 characters, it seems ok until I save the file to the disk.

Does i开发者_运维百科t feel to you as the expected behavior? Be able to type keywords of any length in Word but loosing them after having saved/closed/reopened the file?

May be the RTF specification states explicitly that the field can't store more 520 bytes (not 512)... but I don't find anything about it.

Thanks in advance for any help.

And by the way, do you know some backup field to embed data?


I ended up by using both \keywords and \description tags.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号