|
HtmlToPdfConvertUrl Method |
Gets a
PdfDocument object representing the result of the conversion of the specified url to pdf.
Namespace:
SelectPdf
Assembly:
Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
Syntax public PdfDocument ConvertUrl(
string url
)
Public Function ConvertUrl (
url As String
) As PdfDocument
Parameters
- url
- Type: SystemString
The full 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.
Return Value
Type:
PdfDocumentThe
PdfDocument object that can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
Remarks
The resulted
PdfDocument object can be modified and saved to a file, to a stream, to a memory buffer or to a HTTP response.
The
PdfDocument object must be closed after save to release the system resources used during conversion.
Examples
The following sample code shows how an HtmlToPdf Converter can be instantiated and a basic conversion performed.
HtmlToPdf converter = new HtmlToPdf();
PdfDocument doc = converter.ConvertUrl(url);
doc.Save(file);
doc.Close();
Dim converter as HtmlToPdf = New HtmlToPdf()
Dim doc as PdfDocument = converter.ConvertUrl(url)
doc.Save(file)
doc.Close()
See Also