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[] |
protected virtual byte[] CallTheDriver(ControllerContext context) { var switches = GetWkParams(context); var fileContent = WkhtmltopdfDriver.Convert(WkhtmltopdfPath, switches); return(fileContent); }
protected override byte[] WkhtmlConvert(string switches) { return(WkhtmltopdfDriver.Convert(this.WkhtmlPath, switches)); }