Skip to content

Commit 8d0ebaf

Browse files
Merge pull request #226 from SyncfusionExamples/995158
995158: Added proper Output path for HTML to PDF.
2 parents d12f9c4 + 49bddb7 commit 8d0ebaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HTML to PDF/Blink/Accessible_PDF_In_HTML_to_PDF/.NET/Accessible PDF/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.
1111
htmlConverter.ConverterSettings = settings;
1212
//Convert URL to PDF.
13-
PdfDocument document = htmlConverter.Convert("file:///D:/PDF-Examples/HTML%20to%20PDF/Blink/Accessible_PDF_In_HTML_to_PDF/.NET/Accessible%20PDF/Data/Input.html");
13+
PdfDocument document = htmlConverter.Convert(Path.GetFullPath(@"Data/Input.html"));
1414

1515
//Save the PDF document
1616
document.Save(Path.GetFullPath(@"Output/Output.pdf"));

HTML to PDF/Blink/Convert-website-URL-to-PDF-document/.NET/Convert-website-URL-to-PDF-document/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
using (PdfDocument document = htmlConverter.Convert("https://www.google.com"))
88
{
99
//Save the PDF document
10-
document.Save("Output.pdf");
10+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
1111
}

0 commit comments

Comments
 (0)