Skip to content

Commit fc74ec2

Browse files
Merge remote-tracking branch 'remotes/origin/development'
2 parents 2d84f6c + a0beb16 commit fc74ec2

File tree

4 files changed

+102
-2
lines changed

4 files changed

+102
-2
lines changed

File-Formats/DocIO/Working-with-Table-Of-Contents.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,8 @@ End Using
988988
{% endhighlight %}
989989
{% endtabs %}
990990

991+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Table-Of-Contents/Table_of_figures).
992+
991993
By executing the program, you will get the **Word document** as follows.
992994

993995
![Table of figures in Word document](WorkingWithTableOfContents/Table_of_Figures.png)
@@ -1273,6 +1275,8 @@ End Using
12731275
{% endhighlight %}
12741276
{% endtabs %}
12751277

1278+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Table-Of-Contents/Exclude_caption_label_numbers).
1279+
12761280
By executing the program, you will get the **Word document** as follows.
12771281

12781282
![Table of figures exclude caption label and numbers](WorkingWithTableOfContents/Exclude_Caption_and_Number_in_TOF.png)

File-Formats/PDF/Convert-HTML-To-PDF/features.md

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,4 +2187,97 @@ Refer to the following code snippet to set the timeout for HTML to PDF conversio
21872187

21882188
{% endtabs %}
21892189

2190-
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Time-out-support-in-HTML-to-PDF/.NET).
2190+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/Time-out-support-in-HTML-to-PDF/.NET).
2191+
2192+
## Accessible PDF
2193+
2194+
The Blink HTML converter supports preserving tags from HTML to PDF using the EnableAccessibilityTags property in the BlinkConverterSettings class. Refer to the following code sample.
2195+
2196+
N> This support fully depends on the Chromium headless browser. Our converter preserves the tags, same as the saved PDF from Chrome.
2197+
2198+
{% tabs %}
2199+
2200+
{% highlight c# tabtitle="C# [Cross-platform]" %}
2201+
2202+
//Initialize HTML to PDF converter.
2203+
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
2204+
//Initialize the BlinkConverterSettings.
2205+
BlinkConverterSettings settings = new BlinkConverterSettings();
2206+
//Set true to enable the accessibility tags in PDF generation.
2207+
settings.EnableAccessibilityTags= true;
2208+
//Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.
2209+
htmlConverter.ConverterSettings = settings;
2210+
//Convert URL to PDF.
2211+
PdfDocument document = htmlConverter.Convert("Input.html");
2212+
//Save and close the PDF document.
2213+
FileStream fileStream = new FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite);
2214+
document.Save(fileStream);
2215+
document.Close(true);
2216+
2217+
{% endhighlight %}
2218+
2219+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
2220+
2221+
'Initialize HTML to PDF converter.
2222+
Dim htmlConverter As New HtmlToPdfConverter()
2223+
'Initialize the BlinkConverterSettings.
2224+
Dim settings As New BlinkConverterSettings()
2225+
'Set true to enable the accessibility tags in PDF generation.
2226+
settings.EnableAccessibilityTags = True
2227+
'Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.
2228+
htmlConverter.ConverterSettings = settings
2229+
'Convert URL to PDF.
2230+
Dim document As PdfDocument = htmlConverter.Convert("Input.html")
2231+
'Save and close the PDF document.
2232+
Dim fileStream As New FileStream("HTML-to-PDF.pdf", FileMode.CreateNew, FileAccess.ReadWrite)
2233+
document.Save(fileStream)
2234+
document.Close(True)
2235+
2236+
{% endhighlight %}
2237+
2238+
{% endtabs %}
2239+
2240+
2241+
## Image Background
2242+
2243+
The Blink HTML converter support adding the image background from HTML to Image using the ImageBackgroundColor property in BlinkConverterSettings class. Refer to the following code sample.
2244+
2245+
{% tabs %}
2246+
2247+
{% highlight c# tabtitle="C# [Cross-platform]" %}
2248+
2249+
//Initialize HTML to PDF converter.
2250+
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
2251+
//Initialize the BlinkConverterSettings.
2252+
BlinkConverterSettings settings = new BlinkConverterSettings();
2253+
//Set the Image Background color.
2254+
settings.ImageBackgroundColor = Color.Transparent;
2255+
//Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.
2256+
htmlConverter.ConverterSettings = settings;
2257+
//Convert HTML to Image.
2258+
Image image = htmlConverter.ConvertToImage("Input.html");
2259+
//Save the Image.
2260+
byte[] imageByte = image.ImageData;
2261+
File.WriteAllBytes("Output.png", imageByte);
2262+
2263+
{% endhighlight %}
2264+
2265+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
2266+
2267+
' Initialize HTML to PDF converter.
2268+
Dim htmlConverter As New HtmlToPdfConverter()
2269+
' Initialize the BlinkConverterSettings.
2270+
Dim settings As New BlinkConverterSettings()
2271+
' Set the Image Background color.
2272+
settings.ImageBackgroundColor = Color.Transparent
2273+
' Assign the BlinkConverterSettings to the ConverterSettings property of HtmlToPdfConverter.
2274+
htmlConverter.ConverterSettings = settings
2275+
' Convert HTML to Image.
2276+
Dim image As Image = htmlConverter.ConvertToImage("Input.html")
2277+
' Save the Image.
2278+
Dim imageByte As Byte() = image.ImageData
2279+
File.WriteAllBytes("Output.png", imageByte)
2280+
2281+
{% endhighlight %}
2282+
2283+
{% endtabs %}

File-Formats/PDF/Working-with-DigitalSignature.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4065,6 +4065,8 @@ ldoc.Close(True)
40654065

40664066
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PDF-Examples/tree/master/Digital%20Signature/Get-images-from-the-existing-signed-signature-field).
40674067

4068+
N> This method retrieves the images when rendered on the signed signature field appearance; otherwise, it will return null.
4069+
40684070
## Integrating signature and timestamp certificates into the Document Secure Store (DSS).
40694071

40704072
Effortlessly Integrate **signature and timestamp** certificates into the Document Security Store (DSS) with the Essential PDF Library. This streamlined process enhances certificate management, ensuring robust validation for your PDF documents. Below is a code example demonstrating how to include certificates when creating Long-Term Validity (LTV) from an external signature, utilizing the [CreateLongTermValidity](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Security.PdfSignature.html#Syncfusion_Pdf_Security_PdfSignature_CreateLongTermValidity_System_Collections_Generic_List_System_Security_Cryptography_X509Certificates_X509Certificate2__System_Boolean_) method in the [PdfSignature](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Security.PdfSignature.html) class.
@@ -4162,4 +4164,3 @@ loadedDocument.Close(true)
41624164

41634165
{% endtabs %}
41644166

4165-
N> This method retrieves the images when rendered on the signed signature field appearance; otherwise, it will return null.

File-Formats/Presentation/Working-with-images.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ End Using
396396

397397
N> The bounding box properties (ContainerLeft, ContainerTop, ContainerRight, ContainerBottom) must be set before applying the cropping properties for proper functionality.
398398

399+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Images/Crop_image).
400+
399401
## Removing Images
400402

401403
The following code example demonstrates how to remove an existing image in a PowerPoint slide.

0 commit comments

Comments
 (0)