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()
 한국어