Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created June 3, 2024 12:56
Show Gist options
  • Save bjoerntx/5004c14ebbeeb8a369636972b3b2acc8 to your computer and use it in GitHub Desktop.
Save bjoerntx/5004c14ebbeeb8a369636972b3b2acc8 to your computer and use it in GitHub Desktop.
using TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl();
tx.Create();
tx.Load("document.docx", TXTextControl.StreamType.WordprocessingML);
var test = ExtractTextBlocks("Heading 2", tx, false);
foreach (var item in test)
{
Console.WriteLine("New block: \r\n\r\n" + item + "\r\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment