Created
November 16, 2023 15:34
-
-
Save bjoerntx/5595a3717944ef60437ab359435a5933 to your computer and use it in GitHub Desktop.
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 (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl()) | |
{ | |
tx.Create(); | |
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings() | |
{ | |
PDFImportSettings = TXTextControl.PDFImportSettings.GenerateParagraphs | |
}; | |
// load PDF document | |
tx.Load("App_Data/sample.pdf", TXTextControl.StreamType.AdobePDF, ls); | |
// retrieve plain text | |
var text = tx.Text; | |
Console.WriteLine(text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment