C# Class Rotativa.WkhtmltopdfDriver

Inheritance: Rotativa.WkhtmlDriver
Afficher le fichier Open project: scoorf/Rotativa Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Convert ( string wkhtmltopdfPath, string switches, string html ) : byte[]

Converts given URL or HTML string to PDF.

Method Details

Convert() public static méthode

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.
Résultat byte[]

ConvertHtml() public static méthode

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.
Résultat byte[]