Strike Out Words using StrikeOutAnnotation

Contents
[ ]

Annotations are held in a Page object’s AnnotationCollection collection. A class named StrikeOutAnnotation can be used to add strike out annotations to a PDF document.

To strike out a certain TextFragment:

  1. Search for a TextFragment in the PDF file.
  2. Get the TextFragment object’s coordinates.
  3. Use the coordinates to instantiate a StrikeOutAnnotation object.

The following code snippet shows how to search for a particular TextFragment and add a StrikeOutAnnotation to that object.

A TextFragment may contain one or more segments, so work with internal segments to.