Class PdfExtractor
Class PdfExtractor
名称: Aspose.Pdf.Plugins 会議: Aspose.PDF.dll (25.5.0)
テキスト、画像、および PDF ドキュメントのページに発生する可能性のある他の種類のコンテンツを抽出するためのベース機能を表します。
public abstract class PdfExtractor : IPlugin, IDisposableInheritance
Derived
ImageExtractor , TextExtractor
Implements
相続人
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 PDF contents
using (TextExtractor extractor = new TextExtractor())
{
// create TextExtractorOptions object to set instructions
textExtractorOptions = new TextExtractorOptions();
// add input file path to data sources
textExtractorOptions.AddInput(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 オブジェクトは、テキスト、または Aspose.Pdf.Plugins.ImageExtractor を抽出するために使用されます。
Constructors
PdfExtractor()
protected PdfExtractor()Methods
Dispose()
IDISPOSABLEの実施 実際には、PdfExtractorには必要ありません。
public void Dispose()Process(IPluginオプション)
PdfExtractor 処理は指定されたパラメーターで開始します。
public ResultContainer Process(IPluginOptions pdfExtractorOptions)Parameters
pdfExtractorOptions IPluginOptions
PdfExtractor の指示を含むオプションオブジェクト。
Returns
抽出の結果を含む ResultContainer オブジェクト。