Class TextExtractor

Class TextExtractor

A név: Aspose.Pdf.Plugins Összefoglaló: Aspose.PDF.dll (25.4.0)

TextExtractor Plugin használata.

public class TextExtractor : PdfExtractor, IPlugin, IDisposable

Inheritance

object PdfExtractor TextExtractor

Implements

IPlugin , IDisposable

Örökletes tagok

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

A példa azt mutatja, hogyan lehet kivonni a szöveges tartalmat a PDF dokumentumból.

// 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

Az Aspose.Pdf.Plugins.TextExtractor objektumot PDF dokumentumok szövegének kivonására használják.

Constructors

TextExtractor()

public TextExtractor()
 Magyar