Class TextExtractorOptions
A név: Aspose.Pdf.Plugins Összefoglaló: Aspose.PDF.dll (25.5.0)
A TextExtractor plugin szöveg kivonási opcióit jeleníti meg.
public sealed class TextExtractorOptions : PdfExtractorOptions, IPluginOptionsInheritance
object ← PdfExtractorOptions ← TextExtractorOptions
Implements
Örökletes tagok
PdfExtractorOptions.AddInput(IDataSource) , PdfExtractorOptions.Inputs , PdfExtractorOptions.OperationName , object.GetType() , 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 PDF contents
using (TextExtractor extractor = new TextExtractor())
{
// create TextExtractorOptions object to set TextFormattingMode (Pure, or Raw - default)
extractorOptions = new TextExtractorOptions(TextExtractorOptions.TextFormattingMode.Pure);
// add input file path to data sources
extractorOptions.AddInput(new FileDataSource(inputPath));
// perform extraction process
ResultContainer resultContainer = extractor.Process(extractorOptions);
// get the extracted text from the ResultContainer object
string textExtracted = resultContainer.ResultCollection[0].ToString();
}Remarks
Az Aspose.Pdf.Plugins.TextExtractorOptions objektumot használják az Aspose.Pdf.Plugins.TextExtractorOptions.TextFormattingMode beállításához és a szöveges kivonási művelet egyéb opcióihoz.Emellett az adatok (fájlok, áramlások) hozzáadására szolgáló funkciókat is örömmel szolgál, amelyek a PDF dokumentumok beviteleit képviselik.
Constructors
TextExtractorOptions(TextFormattingMode)
Elindítja az Aspose.Pdf.Plugins.TextExtractorOptions objektum új példáját a megadott szöveges formázási módhoz.
public TextExtractorOptions(TextExtractorOptions.TextFormattingMode formattingMode)Parameters
formattingMode TextExtractorOptions
.
TextFormattingMode
A szöveg formázása mód értéke.
TextExtractorOptions()
Kezdeményez egy új példát az Aspose.Pdf.Plugins.TextExtractorOptions objektum a ‘Raw’ (default) szöveges formázási módban.
public TextExtractorOptions()Properties
FormattingMode
Formázza a módot.
public TextExtractorOptions.TextFormattingMode FormattingMode { get; }ingatlan értéke
TextExtractorOptions . TextFormattingMode
OperationName
Visszaadja a művelet nevét.
public override string OperationName { get; }