diff --git a/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter.sln b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter.sln new file mode 100644 index 00000000..b000ce35 --- /dev/null +++ b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scale_property_in_HTML_converter", "Scale_property_in_HTML_converter\Scale_property_in_HTML_converter.csproj", "{DF049042-5B7C-4589-83BE-46451D5B7932}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DF049042-5B7C-4589-83BE-46451D5B7932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF049042-5B7C-4589-83BE-46451D5B7932}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF049042-5B7C-4589-83BE-46451D5B7932}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF049042-5B7C-4589-83BE-46451D5B7932}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {86A1E28F-2A87-4324-A248-4F416B31440C} + EndGlobalSection +EndGlobal diff --git a/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Program.cs b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Program.cs new file mode 100644 index 00000000..0652b18f --- /dev/null +++ b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Program.cs @@ -0,0 +1,20 @@ + +using Syncfusion.HtmlConverter; +using Syncfusion.Pdf; + +//Initialize the HTML to PDF converter. +HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(); +//Initialize blink converter settings. +BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings(); +//Set the Scale. +blinkConverterSettings.Scale = 1.0f; +//Assign Blink converter settings to HTML converter. +htmlConverter.ConverterSettings = blinkConverterSettings; +//Convert URL to PDF document. +PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com"); +//Create a file stream. +FileStream fileStream = new FileStream("HTMLtoPDF.pdf", FileMode.Create, FileAccess.ReadWrite); +//Save a PDF document to a file stream. +document.Save(fileStream); +//Close the document. +document.Close(true); diff --git a/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Scale_property_in_HTML_converter.csproj b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Scale_property_in_HTML_converter.csproj new file mode 100644 index 00000000..89b91378 --- /dev/null +++ b/HTML to PDF/Blink/HTML-to-PDF-scale-property/Scale_property_in_HTML_converter/Scale_property_in_HTML_converter.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + +