WordToPdfConverterConvertToPdfFileAsync(String, String, CancellationToken) Method
Asynchronously converts a Word document from a file path to PDF and saves the result to a specified file path
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next.WordToPdf (in Winnovative.Pdf.Next.WordToPdf.dll) Version: 20.0.0
public Task ConvertToPdfFileAsync(
string docxFilePath,
string outputPdfFilePath,
CancellationToken ct = default
)
- docxFilePath String
- The full path to the DOCX file that will be converted to PDF
- outputPdfFilePath String
- The full path where the resulting PDF file will be saved
- ct CancellationToken (Optional)
-
A cancellation token that can be used to cancel the asynchronous operation. When cancellation
is requested the task returned by this method will complete by throwing
OperationCanceledException as soon as possible
Task
A task that represents the asynchronous operation