PdfConverterGetPdfDocumentObjectFromUrlAsync Method |
Converts the specified URL asynchronously and returns a Document object that can be modified and saved.
Namespace: ExpertPdf.Anywhere.HtmlToPdfAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic Task<Document> GetPdfDocumentObjectFromUrlAsync(
string url,
CancellationToken cancellationToken = default
)
Public Function GetPdfDocumentObjectFromUrlAsync (
url As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Document)
Parameters
- url String
- The URL of the web page to be converted to PDF. The URL can be also the full path
of a HTML file from the local file system.
- cancellationToken CancellationToken (Optional)
- A token that cancels the conversion.
Return Value
TaskDocumentA task whose result is the Document object. The Document object must be closed after save to release the
system resources used during conversion.
Remarks
See Also