C# Class Rotativa.WkhtmltopdfDriver

Inheritance: Rotativa.WkhtmlDriver
Datei anzeigen Open project: scoorf/Rotativa Class Usage Examples

Public Methods

Method Description
Convert ( string wkhtmltopdfPath, string switches ) : byte[]

Converts given URL to PDF.

ConvertHtml ( string wkhtmltopdfPath, string switches, string html ) : byte[]

Converts given HTML string to PDF.

Private Methods

Method Description
Convert ( string wkhtmltopdfPath, string switches, string html ) : byte[]

Converts given URL or HTML string to PDF.

Method Details

Convert() public static method

Converts given URL to PDF.
public static Convert ( string wkhtmltopdfPath, string switches ) : byte[]
wkhtmltopdfPath string Path to wkthmltopdf.
switches string Switches that will be passed to wkhtmltopdf binary.
return byte[]

ConvertHtml() public static method

Converts given HTML string to PDF.
public static ConvertHtml ( string wkhtmltopdfPath, string switches, string html ) : byte[]
wkhtmltopdfPath string Path to wkthmltopdf.
switches string Switches that will be passed to wkhtmltopdf binary.
html string String containing HTML code that should be converted to PDF.
return byte[]