In this example, all occurrences of the word "software" on page 1 are replaced with "SOFTWARE PAGE 1", using red text with a font size of 12....formatting changes such as color or font size. Using TextState...text_state . foreground_color = ap . Color . red text_state . font_size...