How do I I flatten glyphs to paths in PDF?

Q: Can I I flatten glyphs to paths in PDF using PDFNet ?

A: You can use PDFNet to convert text to paths (e.g. to prevent simple
text extraction, indexing etc).

A good starting point would be ElementEdit & ElementReaderAdv
The idea is to traverse all characters on a given PDF page (similar to
RecolorText sample -
and then instead of writing character element you would write a path
element. You can obtain path data for a given character using
element.GetGState().GetFont().GetPathData(). A new path element would
be created using ElementBuilder.CreatePath(....). The only tricky
thing would be to set the proper transformation matrix on the path.