Class TextExtractor

Class TextExtractor

名称: Aspose.Pdf.Plugins 合計: Aspose.PDF.dll (25.4.0)

TextExtractor プラグインを表示します。

public class TextExtractor : PdfExtractor, IPlugin, IDisposable

Inheritance

object PdfExtractor TextExtractor

Implements

IPlugin , IDisposable

相続人

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

例では、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

Aspose.Pdf.Plugins.TextExtractor オブジェクトは、PDF ドキュメントにテキストを抽出するために使用されます。

Constructors

TextExtractor()

public TextExtractor()
 日本語