Class TextExtractor

Class TextExtractor

ja nimityö: Aspose.Pdf.Plugins Kokoelma: Aspose.PDF.dll (25.4.0)

Esittelee TextExtractor Plugin.

public class TextExtractor : PdfExtractor, IPlugin, IDisposable

Inheritance

object PdfExtractor TextExtractor

Implements

IPlugin , IDisposable

Perintöjäsenet

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

Esimerkki osoittaa, miten teksti sisältöä voidaan poistaa PDF-dokumentista.

// 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 -objektiä käytetään tekstien tuottamiseen PDF-tiedostoihin.

Constructors

TextExtractor()

public TextExtractor()
 Suomi