Click or drag to resize
PdfConverterGetPdfBytesFromUrl Method (String, String)
Converts the specified URL into a PDF document and returns the rendered PDF document as an array of bytes. This method can be used to perform HTML to PDF conversion in internal memory.

Namespace: ExpertPdf.HtmlToPdf
Assembly: ExpertPdf.HtmlToPdf (in ExpertPdf.HtmlToPdf.dll) Version: 11.0.0
Syntax
public byte[] GetPdfBytesFromUrl(
	string url,
	string internalLinksDocUrl
)

Parameters

url
Type: SystemString
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.
internalLinksDocUrl
Type: SystemString
The full URL of the document referenced by the internal links from the HTML document.

Return Value

Type: Byte
An array of bytes containing the binary representation of the PDF document.
See Also