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[]
Beispiel #1
0
        protected virtual byte[] CallTheDriver(ControllerContext context)
        {
            var switches    = GetWkParams(context);
            var fileContent = WkhtmltopdfDriver.Convert(WkhtmltopdfPath, switches);

            return(fileContent);
        }
Beispiel #2
0
 protected override byte[] WkhtmlConvert(string switches)
 {
     return(WkhtmltopdfDriver.Convert(this.WkhtmlPath, switches));
 }