Skip to content

Commit fd17017

Browse files
committed
Added comments
1 parent 982f3ff commit fd17017

File tree

1 file changed

+2
-1
lines changed
  • Azure/HTML-to-PDF-Azure-Functions(Windows)/HTML-to-PDF-Azure-Functions

1 file changed

+2
-1
lines changed

Azure/HTML-to-PDF-Azure-Functions(Windows)/HTML-to-PDF-Azure-Functions/Function1.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public static async Task<HttpResponseMessage> Run(
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"); //Assign WebKit settings to HTML converter
37+
settings.WebKitPath = Path.Combine(context.FunctionAppDirectory, "bin/runtimes/win-x64/native");
38+
//Assign WebKit settings to HTML converter.
3839
htmlConverter.ConverterSettings = settings;
3940
//Convert URL to PDF.
4041
PdfDocument document = htmlConverter.Convert("https://www.google.com");

0 commit comments

Comments
 (0)