JODF > Tutorial > Replace text

The example shows you how to open an OpenDocument text document and replace text. Replace searches the whole document, including tables, lists, sections, headers, footers, notes, annotations, text boxes and shapes, and returns the number of replaced occurrences. The paragraph, its style and all other content of the paragraph remain unchanged, even when an occurrence is split over several spans.

Need help? Ask our developers: