Last active
October 20, 2022 09:57
-
-
Save conholdate-docs-gists/b27ac127cfc657c1dc7b017ced472e9b to your computer and use it in GitHub Desktop.
Extract Text from PDF in C# | https://docs.conholdate.com/net/extract-text-from-pdf/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read complete article here: https://docs.conholdate.com/net/extract-text-from-pdf/