File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Azure/HTML-to-PDF-Azure-Functions(Windows)/HTML-to-PDF-Azure-Functions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ public static async Task<HttpResponseMessage> Run(
3030 {
3131 MemoryStream ms = new MemoryStream ( ) ;
3232 try {
33- //Initialize HTML to PDF converter.
33+ //Initialize HTML to PDF converter.
3434 HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter ( HtmlRenderingEngine . WebKit ) ;
3535 WebKitConverterSettings settings = new WebKitConverterSettings ( ) ;
3636 //Set WebKit path.
37- settings . WebKitPath = Path . Combine ( context . FunctionAppDirectory , "bin/runtimes/win-x64/native" ) ;
37+ settings . WebKitPath = Path . Combine ( context . FunctionAppDirectory , "bin/runtimes/win-x64/native" ) ;
3838 //Assign WebKit settings to HTML converter.
3939 htmlConverter . ConverterSettings = settings ;
4040 //Convert URL to PDF.
4141 PdfDocument document = htmlConverter . Convert ( "https://www.google.com" ) ;
4242
43- //Save and close the PDF document.
43+ //Save and close the PDF document.
4444 document . Save ( ms ) ;
4545 document . Close ( ) ;
4646 ms . Position = 0 ;
You can’t perform that action at this time.
0 commit comments