[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AI.OpenAIDocumentAssistantBase.GetAbstract

GetAbstract Method

GetAbstract(GcPdfDocument, RecognitionAlgorithm, OutputRange, CancellationToken)

Creates an abstract for the specified GcPdfDocument.

Declaration
public Task<string> GetAbstract(GcPdfDocument doc, RecognitionAlgorithm recognitionAlgorithm = RecognitionAlgorithm.Advanced, OutputRange pageRange = null, CancellationToken cancellationToken = default)
Public Function GetAbstract(doc As GcPdfDocument, Optional recognitionAlgorithm As RecognitionAlgorithm = RecognitionAlgorithm.Advanced, Optional pageRange As OutputRange = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Parameters
Type Name Description
GcPdfDocument doc

The GcPdfDocument to analyze.

RecognitionAlgorithm recognitionAlgorithm

The RecognitionAlgorithm to use when analyzing the document. Defaults to Advanced.

OutputRange pageRange

The range of pages to analyze. Defaults to null, meaning all pages are included.

CancellationToken cancellationToken

A token that can be used to cancel the operation. Defaults to None.

Returns
Type Description
Task<string>

A task that represents the asynchronous operation. The result contains the generated abstract.