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: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public byte[] GetPdfBytesFromUrl( string url ) |
| Visual Basic |
|---|
Public Function GetPdfBytesFromUrl ( url As String ) As Byte() |
| Visual C++ |
|---|
public: array<unsigned char>^ GetPdfBytesFromUrl( String^ url ) |
Parameters
- url
- Type: System..::..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.
Return Value
Type: array<Byte>[]()[][]An array of bytes containing the binary representation of the PDF document.