HtmlToPdfConverterConvertUrlToFileAsync Method
Asynchronously converts an URL to PDF and writes the generated PDF document into a file.
A new instance of HtmlToPdfConverter must be created for each call to this method
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 20.0.0
public Task ConvertUrlToFileAsync(
string url,
string outFile,
CancellationToken ct = default
)
- url String
- The URL of the HTML document to convert to PDF. The full path of a HTML file in the local file system
prefixed by file:// is accepted as an URL
- outFile String
- The full path of the file where to write the rendered PDF document
- 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