Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created June 3, 2024 12:53
Show Gist options
  • Save bjoerntx/bb3fe3fa1601e86be5007775225d14a6 to your computer and use it in GitHub Desktop.
Save bjoerntx/bb3fe3fa1601e86be5007775225d14a6 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 1", tx, true);
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