OpenAIImageDescriptionCopilotExtensions.AddPdfImageDescriptionsAsync

OpenAIImageDescriptionCopilotExtensions.AddPdfImageDescriptionsAsync method

Asynchronously adds image descriptions to a PDF file and saves new documents to a specified folders.

public static Task AddPdfImageDescriptionsAsync(
    this IImageDescriptionCopilot imageDescriptionCopilot, string outputDirectory, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
imageDescriptionCopilotIImageDescriptionCopilotThe image description copilot.
outputDirectoryStringThe output directory where to save the output PDF files.
cancellationTokenNullable`1The cancellation token (optional).

Return Value

A task representing the asynchronous operation.

See Also