PdfConverterSavePdfFromUrlToStreamAsync Method |
Converts the specified URL into a PDF document asynchronously and saves it to the specified stream.
Namespace: ExpertPdf.Anywhere.HtmlToPdfAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic Task SavePdfFromUrlToStreamAsync(
string url,
Stream outPdfStream,
CancellationToken cancellationToken = default
)
Public Function SavePdfFromUrlToStreamAsync (
url As String,
outPdfStream As Stream,
Optional cancellationToken As CancellationToken = Nothing
) As Task
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.
- outPdfStream Stream
- The stream the PDF document is written to.
- cancellationToken CancellationToken (Optional)
- A token that cancels the conversion.
Return Value
TaskA task that completes when the PDF document is written.
Remarks
See Also