Ah yes. Sorry about the rather stark lack of documentation. It was promised, but I have been doing spots of work on other projects.
Text must be passed as a string array instead of a string, with each entry in the array denoting one page. Even if you have only one page, you would still pass a single entry array.
Thusly, text = "String here"; would become text[0] = "String here";