Skip to content

Commit cb504f4

Browse files
committed
Alignment issue
1 parent fd17017 commit cb504f4

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)