Class TextExtractor
Class TextExtractor
Nom dels espais: Aspose.Pdf.Plugins Assemblea: Aspose.PDF.dll (25.4.0)
Presentació de TextExtractor Plugin.
public class TextExtractor : PdfExtractor, IPlugin, IDisposable
Inheritance
object ← PdfExtractor ← TextExtractor
Implements
Membres heretats
PdfExtractor.Process(IPluginOptions) , PdfExtractor.Dispose() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
L’exemple demostra com extreure contingut de text del document PDF.
// create TextExtractor object to extract text in PDF contents
using (TextExtractor extractor = new TextExtractor())
{
// create TextExtractorOptions
textExtractorOptions = new TextExtractorOptions();
// add input file path to data sources
textExtractorOptions.AddDataSource(new FileDataSource(inputPath));
// perform extraction process
ResultContainer resultContainer = extractor.Process(textExtractorOptions);
// get the extracted text from the ResultContainer object
string textExtracted = resultContainer.ResultCollection[0].ToString();
}
Remarks
L’objecte Aspose.Pdf.Plugins.TextExtractor s’utilitza per extreure text en documents PDF.
Constructors
TextExtractor()
public TextExtractor()