You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: File-Formats/PDF/Convert-HTML-To-PDF/features.md
+54-1Lines changed: 54 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2079,4 +2079,57 @@ document.Close(True)
2079
2079
2080
2080
{% endtabs %}
2081
2081
2082
-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Set_blink_path_in_HTML_to_PDF).
2082
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Set_blink_path_in_HTML_to_PDF).
2083
+
2084
+
## Scale
2085
+
Resizing the HTML content within a PDF can be achieved through the utilization of the [Scale](https://help.syncfusion.com/cr/file-formats/Syncfusion.HtmlConverter.BlinkConverterSettings.html#Syncfusion_HtmlConverter_BlinkConverterSettings_Scale) property of Blink in HTML Converter.
2086
+
2087
+
N> The scaling factor should be within the range of 0.1 to 2.0.
2088
+
2089
+
Refer to the following code snippet to resize the page content size.
2090
+
2091
+
{% tabs %}
2092
+
2093
+
{% highlight c# tabtitle="C# [Cross-platform]" %}
2094
+
2095
+
//Initialize the HTML to PDF converter.
2096
+
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
2097
+
//Initialize the blink converter settings.
2098
+
BlinkConverterSettings blinkConverterSettings = new BlinkConverterSettings();
2099
+
//Set the Scale.
2100
+
blinkConverterSettings.Scale = 1.0f;
2101
+
//Assign the Blink converter settings to the HTML converter.
Dim document As PdfDocument = htmlConverter.Convert("https://www.syncfusion.com")
2126
+
'Save a PDF document to a file stream.
2127
+
document.Save("HTMLtoPDF.pdf")
2128
+
'Close the document.
2129
+
document.Close(True)
2130
+
2131
+
{% endhighlight %}
2132
+
2133
+
{% endtabs %}
2134
+
2135
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/HTML-to-PDF-scale-property).
0 commit comments