Skip to content

Instantly share code, notes, and snippets.

@conholdate-docs-gists
Last active October 20, 2022 09:57
Show Gist options
  • Save conholdate-docs-gists/b27ac127cfc657c1dc7b017ced472e9b to your computer and use it in GitHub Desktop.
Save conholdate-docs-gists/b27ac127cfc657c1dc7b017ced472e9b to your computer and use it in GitHub Desktop.
using(Parser parser = new Parser(filePath))
{
// Extract a text into the reader
using(TextReader reader = parser.GetText())
{
// Print a text from the document
// If text extraction isn't supported, a reader is null
Console.WriteLine(reader == null ? "Text extraction isn't supported" : reader.ReadToEnd());
}
}
@conholdate-docs-gists
Copy link
Author

conholdate-docs-gists commented Oct 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment