Skip to content

Commit 02210c3

Browse files
committed
Merge branch 'hotfix/hotfix-v33.1.44' of https://github.com/syncfusion-content/document-processing-docs into 1016290-Update-Performance-Metrics-Page-in-UG-hotfix
2 parents 6693db5 + e5ad6d2 commit 02210c3

68 files changed

Lines changed: 2283 additions & 936 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Document-Processing-toc.html

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@
10491049
<li><a href="/document-processing/pdf/pdf-viewer/react/toolbar-customization/custom-toolbar">Custom Toolbar</a></li>
10501050
</ul>
10511051
</li>
1052-
<li><a href="/document-processing/pdf/pdf-viewer/react/navigation">Interactive PDF Navigation</a>
1052+
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/overview">Interactive PDF Navigation</a>
10531053
<ul>
10541054
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/page">Page Navigation</a></li>
10551055
<li><a href="/document-processing/pdf/pdf-viewer/react/interactive-pdf-navigation/bookmark">Bookmark Navigation</a></li>
@@ -1059,7 +1059,14 @@
10591059
</li>
10601060
<li><a href="/document-processing/pdf/pdf-viewer/react/magnification">Magnification</a></li>
10611061
<li><a href="/document-processing/pdf/pdf-viewer/react/accessibility">Accessibility</a></li>
1062-
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search">Text Search</a></li>
1062+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/overview">Text Search and Extraction</a>
1063+
<ul>
1064+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/text-search-features">Text Search</a></li>
1065+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/text-search-events">Text Search Events</a></li>
1066+
<li><a href="/document-processing/pdf/pdf-viewer/react/text-search/find-text">Find Text Method</a></li>
1067+
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/extract-text">Extract Text with Options</a></li>
1068+
</ul>
1069+
</li>
10631070
<li>Annotation
10641071
<ul>
10651072
<li><a href="/document-processing/pdf/pdf-viewer/react/annotation/overview">Overview</a></li>
@@ -3233,6 +3240,9 @@
32333240
<li>
32343241
<a href="/document-processing/pdf/conversions/html-to-pdf/net/docker">Docker</a>
32353242
</li>
3243+
<li>
3244+
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Convert-HTML-to-PDF-in-Windows-Server">Windows Server</a>
3245+
</li>
32363246
<li>
32373247
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Convert-HTML-to-PDF-in-GCP">Google Cloud Platform (GCP)</a>
32383248
<ul>
@@ -7037,6 +7047,9 @@
70377047
<li>
70387048
<a href="/document-processing/powerpoint/powerpoint-library/net/Create-PowerPoint-Presentation-in-Azure-Functions-v4">Azure Functions v4</a>
70397049
</li>
7050+
<li>
7051+
<a href="/document-processing/powerpoint/powerpoint-library/net/Create-PowerPoint-Presentation-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7052+
</li>
70407053
</ul>
70417054
</li>
70427055
<li>
@@ -7163,6 +7176,9 @@
71637176
<li>
71647177
<a href="/document-processing/powerpoint/powerpoint-library/net/Open-and-Save-PowerPoint-Presentation-in-Azure-Functions-v4">Azure Functions v4</a>
71657178
</li>
7179+
<li>
7180+
<a href="/document-processing/powerpoint/powerpoint-library/net/Open-and-Save-PowerPoint-Presentation-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7181+
</li>
71667182
</ul>
71677183
</li>
71687184
<li>
@@ -7354,6 +7370,9 @@
73547370
<li>
73557371
<a href="/document-processing/powerpoint/conversions/powerpoint-to-image/net/Convert-PowerPoint-to-Image-in-Azure-Functions-v4">Azure Functions v4</a>
73567372
</li>
7373+
<li>
7374+
<a href="/document-processing/powerpoint/conversions/powerpoint-to-image/net/Convert-PowerPoint-to-Image-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7375+
</li>
73577376
</ul>
73587377
</li>
73597378
<li>
@@ -7440,6 +7459,9 @@
74407459
<li>
74417460
<a href="/document-processing/powerpoint/conversions/powerpoint-to-pdf/net/Convert-PowerPoint-to-PDF-in-Azure-Functions-v4">Azure Functions v4</a>
74427461
</li>
7462+
<li>
7463+
<a href="/document-processing/powerpoint/conversions/powerpoint-to-pdf/net/Convert-PowerPoint-to-PDF-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7464+
</li>
74437465
</ul>
74447466
</li>
74457467
<li>
@@ -7563,7 +7585,7 @@
75637585
<a href="/document-processing/powerpoint/conversions/powerpoint-to-pdf/net/Convert-PowerPoint-to-PDF-in-Azure-Functions-v4">Azure Functions v4</a>
75647586
</li>
75657587
<li>
7566-
<a href="/document-processing/powerpoint/conversions/powerpoint-to-image/net/Convert-PowerPoint-to-Image-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7588+
<a href="/document-processing/powerpoint/conversions/powerpoint-to-pdf/net/Convert-PowerPoint-to-PDF-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
75677589
</li>
75687590
</ul>
75697591
</li>
@@ -7683,6 +7705,9 @@
76837705
<li>
76847706
<a href="/document-processing/powerpoint/conversions/powerpoint-to-image/net/Convert-PowerPoint-to-Image-in-Azure-Functions-v4">Azure Functions v4</a>
76857707
</li>
7708+
<li>
7709+
<a href="/document-processing/powerpoint/conversions/powerpoint-to-image/net/Convert-PowerPoint-to-Image-in-Azure-Functions-Flex-Consumption">Azure Functions Flex Consumption</a>
7710+
</li>
76867711
</ul>
76877712
</li>
76887713
<li>

Document-Processing/Common/Font-Manager/font-manager.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation: UG
1111

1212
Font creation is a primary cause of excessive memory consumption and performance degradation during Office to PDF/Image conversions and PDF processing workflows. This problem is particularly pronounced in multi-threaded web applications where multiple users perform concurrent operations across different threads or browser tabs.
1313

14-
To address this challenge, Syncfusion Document Processing libraries introduce the **FontManager** class, which provides centralized font management shared across all threads and conversion libraries. This approach eliminates duplicate font objects and significantly reduces memory overhead.
14+
To address this challenge, Syncfusion Document Processing libraries introduce the [FontManager](https://help.syncfusion.com/cr/document-processing/Syncfusion.Drawing.Fonts.FontManager.html) class, which provides centralized font management shared across all threads and conversion libraries. This approach eliminates duplicate font objects and significantly reduces memory overhead.
1515

1616
## Key Features
1717

@@ -55,14 +55,12 @@ FontManager optimizes memory usage across the following Office to PDF/Image conv
5555
<td>
5656
<b>PDF Library Operations</b>
5757
<ul>
58-
<li>PDF creation and manipulation</li>
59-
<li>PDF merging and splitting</li>
60-
<li>PDF form filling and flattening</li>
61-
<li>PDF page extraction and insertion</li>
62-
<li>Adding text, images, and annotations to PDF</li>
63-
<li>PDF redaction and security</li>
64-
<li>PDF/A conformance</li>
65-
<li>OCR text extraction</li>
58+
<li>PDF/A Creation and Conversion</li>
59+
<li>Annotations and Forms: Fill and Flatten</li>
60+
<li>XPS to PDF Conversion</li>
61+
<li>EMF to PDF Conversion</li>
62+
<li>Insert Text in PDF</li>
63+
<li>Tables and Light Tables (Data Grids in PDF)</li>
6664
</ul>
6765
</td>
6866
</tr>
@@ -72,7 +70,7 @@ N> FontManager automatically manages fonts across all these conversion types, wh
7270

7371
## Configuring Automatic Font Cleanup
7472

75-
The `FontManager.Delay` property defines the duration (in milliseconds) after which unused font objects are automatically disposed and removed from the cache. When fonts are no longer referenced, an internal `System.Timers.Timer` triggers disposal based on this value.
73+
The [FontManager.Delay](https://help.syncfusion.com/cr/document-processing/Syncfusion.Drawing.Fonts.FontManager.html#Syncfusion_Drawing_Fonts_FontManager_Delay) property defines the duration (in milliseconds) after which unused font objects are automatically disposed and removed from the cache. When fonts are no longer referenced, an internal `System.Timers.Timer` triggers disposal based on this value.
7674

7775
**Default value:** 30,000 milliseconds (30 seconds),
7876
**Valid range:** 1 to 2,147,483,647 milliseconds.
@@ -120,7 +118,7 @@ app.Run();
120118

121119
## Immediate Font Cache Cleanup
122120

123-
The `FontManager.ClearCache()` method immediately clears all font caches managed by the FontManager. This method forcefully removes and disposes all font instances maintained in shared caches, allowing you to reclaim memory deterministically without waiting for the automatic cleanup delay.
121+
The [FontManager.ClearCache()](https://help.syncfusion.com/cr/document-processing/Syncfusion.Drawing.Fonts.FontManager.html#Syncfusion_Drawing_Fonts_FontManager_ClearCache) method immediately clears all font caches managed by the FontManager. This method forcefully removes and disposes all font instances maintained in shared caches, allowing you to reclaim memory deterministically without waiting for the automatic cleanup delay.
124122

125123
**Use cases:**
126124

@@ -165,6 +163,8 @@ app.Run();
165163
{% endhighlight %}
166164
{% endtabs %}
167165

166+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/DocIO-Examples/tree/main/Unified-font-manager/.NET/).
167+
168168
## Best Practices
169169

170170
1. Set FontManager.Delay early: Configure the delay property in your application's startup code before any document processing begins (Optional).

Document-Processing/Data-Extraction/Smart-Form-Recognizer/NET/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
3636
//Read the input PDF file as stream
3737
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
3838
//Recognize the form and get the output as PDF stream
39-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
39+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
4040
//Save the loadeddocument
4141
pdfLoadedDocument.Save(Output.pdf);
4242

Document-Processing/Data-Extraction/Smart-Form-Recognizer/NET/recognize-forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Button_Click(object sender, RoutedEventArgs e)
2626
//Read the input PDF file as stream
2727
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
2828
//Recognize the form and get the output as PDF stream
29-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
29+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
3030
//Save the loadeddocument
3131
pdfLoadedDocument.Save(Output.pdf);
3232
}
@@ -45,7 +45,7 @@ public async void Button_Click(object sender, RoutedEventArgs e)
4545
//Read the input PDF file as stream
4646
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
4747
//Recognize the form and get the output as PDF stream
48-
PdfLoadedDocument pdfLoadedDocument = await recognizer.RecognizeFormAsPdfDocumentAsync(inputStream);
48+
PdfLoadedDocument pdfLoadedDocument = await smartFormRecognizer.RecognizeFormAsPdfDocumentAsync(inputStream);
4949
//Save the loadeddocument
5050
pdfLoadedDocument.Save(Output.pdf);
5151
}

Document-Processing/Data-Extraction/Smart-Form-Recognizer/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ FormRecognizer smartFormRecognizer = new FormRecognizer();
8484
//Read the input PDF file as stream
8585
FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite);
8686
//Recognize the form and get the output as PDF stream
87-
PdfLoadedDocument pdfLoadedDocument =recognizer.RecognizeFormAsPdfDocument(inputStream);
87+
PdfLoadedDocument pdfLoadedDocument = smartFormRecognizer.RecognizeFormAsPdfDocument(inputStream);
8888
//Save the loadeddocument
8989
pdfLoadedDocument.Save(Output.pdf);
9090

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Convert HTML to PDF on the Windows Server | Syncfusion
3+
description: Learn how to convert HTML to PDF on a Windows Server using IIS Manager with clear and simple guidance.
4+
platform: document-processing
5+
control: PDF
6+
documentation: UG
7+
keywords: create pdf on windows server, generate pdf on windows server, syncfusion html to pdf, host pdf converter in iis
8+
---
9+
10+
# Convert HTML to PDF on the Windows Server using IIS Manager
11+
12+
The Syncfusion<sup>&reg;</sup> HTML to PDF converter is a .NET library for converting webpages, SVG, MHTML, and HTML to PDF using C#. Using this library, convert HTML to PDF document on the Windows Server using IIS Manager.
13+
14+
## Steps to convert HTML to PDF on the windows server using IIS manager
15+
16+
Step 1: Create a new C# ASP.NET Web Application (.NET Framework) project.
17+
![Create ASP.NET MVC application](htmlconversion_images/aspnetmvc1.png)
18+
19+
Step 2: In the Create a new ASP.NET Web Application window, choose the MVC template and click Next to proceed.
20+
![Configuration window](htmlconversion_images/aspnetmvc3.png)
21+
22+
Step 3: Install [Syncfusion.HtmlToPdfConverter.Net.Windows](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org/).
23+
![NuGet Package](htmlconversion_images/nuget-package-window.png)
24+
25+
Step 4: Include the following namespaces in the HomeController.cs file.
26+
27+
{% highlight c# tabtitle="C#" %}
28+
29+
using Syncfusion.Pdf;
30+
using Syncfusion.HtmlConverter;
31+
using System.IO;
32+
33+
{% endhighlight %}
34+
35+
Step 5: Add a new button in the Index.cshtml as shown below.
36+
37+
{% highlight c# tabtitle="C#" %}
38+
39+
@{Html.BeginForm("ExportToPDF", "Home", FormMethod.Post);
40+
{
41+
<div>
42+
<input type="submit" value="Convert PDF" style="width:150px;height:27px" />
43+
</div>
44+
}
45+
Html.EndForm();
46+
}
47+
48+
{% endhighlight %}
49+
50+
Step 6: Add a new action method named ExportToPDF in HomeController.cs and include the below code example to convert HTML to PDF document using [Convert](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html#Syncfusion_HtmlConverter_HtmlToPdfConverter_Convert_System_String_) method in [HtmlToPdfConverter](https://help.syncfusion.com/cr/document-processing/Syncfusion.HtmlConverter.HtmlToPdfConverter.html) class.
51+
52+
{% highlight c# tabtitle="C#" %}
53+
54+
//Initialize HTML to PDF converter.
55+
HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
56+
//Convert URL to PDF document.
57+
PdfDocument document = htmlConverter.Convert("https://www.syncfusion.com");
58+
//Create memory stream.
59+
MemoryStream stream = new MemoryStream();
60+
//Save the document to memory stream.
61+
document.Save(stream);
62+
document.Close(true);
63+
return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "HTML-to-PDF.pdf");
64+
65+
{% endhighlight %}
66+
67+
Step 7: Run the project and verify that the HTML‑to‑PDF conversion functions correctly in the local environment.
68+
69+
## Publish the project to a Windows Server using IIS
70+
71+
Step 1: Publish the project to a local folder by right‑clicking the project, selecting **Publish**, choosing the **Folder** option, and clicking **Next**.
72+
![IIS Folder](htmlconversion_images/IIS-Folder.png)
73+
74+
Step 2: Provide the folder path where the project should be published.
75+
![IIS Folder Path](htmlconversion_images/IIS-Browser.png)
76+
77+
Step 3: After creating the publish profile, Visual Studio opens the Publish dashboard. Review the target location, configuration, and other settings, and adjust them if necessary. Once everything looks correct, click **Publish** to deploy the application to the selected destination.
78+
![IIS Publish](htmlconversion_images/IIS-Publish.png)
79+
80+
Step 4: It will generate and publish all necessary files to the local publish directory.
81+
![IIS Local Folder Path](htmlconversion_images/IIS-localfolder.png)
82+
83+
Step 5: Copy the published output folder to the server and host the application in IIS.
84+
i.Open **IIS Manager** on the server and create a new website.
85+
86+
ii.Enter a **site name** and select the **physical path** that points to the published output folder on the server.
87+
![IIS Website](htmlconversion_images/IIS-Website.png)
88+
89+
iii. Obtain the server’s IP address after adding the website in the local IIS server.
90+
91+
iv. From your local computer, browse the website using the server’s IP address and port number. Once the site loads successfully, export the webpage to PDF.
92+
![IIS Browser](htmlconversion_images/IIS-RunBrowser.png)
93+
94+
A complete working sample is available for download from [GitHub](https://github.com/SyncfusionExamples/html-to-pdf-csharp-examples/tree/master/ASP.NET%20Core).
95+
96+
Click the button to convert the Syncfusion<sup>&reg;</sup> webpage into a PDF document. The generated PDF will appear as shown below.
97+
![IIS Output document](htmlconversion_images/IIS-Output.png)
18.7 KB
Loading
29 KB
Loading
69.4 KB
Loading
25.7 KB
Loading

0 commit comments

Comments
 (0)