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

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