Calc/Add-In/Python edit text
From Apache OpenOffice Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
An example showing how to edit the content of a text shape from python and then export the file to postscript (.ps) using "print to file" or to .pdf and how to setup the environment on Ubuntu Linux.