The SaveTo() method was calling the non-existing AsText() method instead of AsString().
The SaveTo() method was calling the non-existing AsText() method instead of AsString().

christian-vigh-phpclasses/RtfTools