Converts the specified HTML file to PDF and returns the rendered PDF document as an array of bytes.

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public byte[] GetPdfBytesFromHtmlFile(
	string htmlFilePath
)
Visual Basic
Public Function GetPdfBytesFromHtmlFile ( 
	htmlFilePath As String
) As Byte()
Visual C++
public:
array<unsigned char>^ GetPdfBytesFromHtmlFile(
	String^ htmlFilePath
)

Parameters

htmlFilePath
Type: System..::..String
The full path of the HTML file to be converted to PDF.

Return Value

Type: array<Byte>[]()[][]
An array of bytes containing the binary representation of the PDF document.

See Also