diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html
index 0b3c1c0999..21ffdd2b82 100644
--- a/Document-Processing-toc.html
+++ b/Document-Processing-toc.html
@@ -3410,103 +3410,98 @@
HTML to PDF
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/Console.md b/Document-Processing/Data-Extraction/NET/ocr-processor/Console.md
index 3b0aefd6f7..1d4d856f52 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/Console.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/Console.md
@@ -82,7 +82,7 @@ Click the **Run** button (green arrow) in the toolbar or press F5 to
**Prerequisites**:
-* Install .NET SDK: Ensure that you have the .NET SDK installed on your system. You can download it from the [.NET Downloads page](https://dotnet.microsoft.com/en-us/download).
+* Install .NET SDK: Ensure that you have the .NET SDK installed on your system. You can download it from the [.NET Downloads page](https://code.visualstudio.com/download?_exp_download=d53503e735).
* Install Visual Studio Code: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download).
* Install C# Extension for VS Code: Open Visual Studio Code, go to the Extensions view (Ctrl+Shift+X), and search for 'C#'. Install the official [C# extension provided by Microsoft](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/Features.md b/Document-Processing/Data-Extraction/NET/ocr-processor/Features.md
index 8f72decc53..289d2cd030 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/Features.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/Features.md
@@ -1930,6 +1930,34 @@ using (OCRProcessor processor = new OCRProcessor())
}
{% endhighlight %}
+{% highlight c# tabtitle="C# [Windows-specific]" %}
+
+using Syncfusion.OCRProcessor;
+using Syncfusion.Pdf.Parsing;
+
+//Initialize the OCR processor.
+using (OCRProcessor processor = new OCRProcessor())
+{
+ //Get stream from an image file.
+ FileStream imageStream = new FileStream(@"Input.jpg", FileMode.Open);
+ //Set OCR language to process.
+ processor.Settings.Language = Languages.English;
+ //Sets Unicode font to preserve the Unicode characters in a PDF document.
+ FileStream fontStream = new FileStream(@"ARIALUNI.ttf", FileMode.Open);
+ //Set the unicode font.
+ processor.UnicodeFont = new PdfTrueTypeFont(fontStream, true, PdfFontStyle.Regular, 10);
+ //Set the PDF conformance level.
+ processor.Settings.Conformance = PdfConformanceLevel.Pdf_A1B;
+ //Process OCR by providing the bitmap image.
+ PdfDocument document = processor.PerformOCR(imageStream);
+
+ //Save the PDF document to file stream.
+ document.Save("Output.pdf");
+ //Close the document.
+ document.Close(true);
+}
+{% endhighlight %}
+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Imports Syncfusion.OCRProcessor
@@ -1996,10 +2024,16 @@ using (OCRProcessor processor = new OCRProcessor())
{% endhighlight %}
-{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+{% highlight c# tabtitle="C# [Windows-specific]" %}
//By default unicode characters can be extracted from image file in .NET Framework applications like WF, WPF, ASP.NET and ASP.NET MVC.
+{% endhighlight %}
+
+{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
+
+'By default unicode characters can be extracted from image file in .NET Framework applications like WF, WPF, ASP.NET and ASP.NET MVC.
+
{% endhighlight %}
{% endtabs %}
@@ -2373,25 +2407,18 @@ using (OCRProcessor ocrProcessor = new OCRProcessor())
new FileStream("arialuni.ttf", FileMode.Open), // Path to the TrueType font file
12 // Font size
);
-
// Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-
// Configure OCR settings
OCRSettings ocrSettings = new OCRSettings();
-
// Specify the languages to be used for OCR
ocrSettings.Language = "eng+deu+ara+ell+fra"; // English, German, Arabic, Greek, French
-
// Apply the OCR settings to the OCR processor
ocrProcessor.Settings = ocrSettings;
-
// Perform OCR on the loaded PDF document, providing the path to the tessdata directory
ocrProcessor.PerformOCR(loadedDocument, "tessdata");
-
// Save the OCR-processed document
loadedDocument.Save("Output.pdf");
-
// Close the loaded document
loadedDocument.Close(true);
}
@@ -2408,22 +2435,16 @@ using (OCRProcessor ocrProcessor = new OCRProcessor())
{
// Load the PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
-
// Configure OCR settings
OCRSettings ocrSettings = new OCRSettings();
-
// Specify the languages to be used for OCR
ocrSettings.Language = "eng+deu+ara+ell+fra"; // English, German, Arabic, Greek, French
-
// Apply the OCR settings to the OCR processor
ocrProcessor.Settings = ocrSettings;
-
// Perform OCR on the loaded PDF document, providing the path to the tessdata directory
ocrProcessor.PerformOCR(loadedDocument, "tessdata");
-
// Save the OCR-processed document
loadedDocument.Save("Output.pdf");
-
// Close the loaded document
loadedDocument.Close(true);
}
@@ -2444,22 +2465,16 @@ Using ocrProcessor As New OCRProcessor()
)
' Load the PDF document from the file stream
Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
-
' Configure OCR settings
Dim ocrSettings As New OCRSettings()
-
' Specify the languages to be used for OCR
ocrSettings.Language = "eng+deu+ara+ell+fra" ' English, German, Arabic, Greek, French
-
' Apply the OCR settings to the OCR processor
ocrProcessor.Settings = ocrSettings
-
' Perform OCR on the loaded PDF document, providing the path to the tessdata directory
ocrProcessor.PerformOCR(loadedDocument, "tessdata")
-
' Save the OCR-processed document
loadedDocument.Save("Output.pdf")
-
' Close the loaded document and commit changes
loadedDocument.Close(True)
@@ -2489,24 +2504,18 @@ using (OCRProcessor processor = new OCRProcessor())
{
// Load the PDF document from the file stream
PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument("Input.pdf");
-
// Set OCR language to English
processor.Settings.Language = Languages.English;
-
// Set the page segmentation mode to process sparse text with orientation and script detection
processor.Settings.PageSegment = PageSegMode.SparseTextOsd;
-
// Perform OCR on the loaded PDF document to extract text
processor.PerformOCR(pdfLoadedDocument, processor.TessDataPath, out OCRLayoutResult layoutResult);
-
// Extract the OCRed text from the first page and join lines with newline characters
string ocrText = string.Join("\n", layoutResult.Pages[0].Lines.Select(line => line.Text));
-
// Save the PDF document to the file stream
pdfLoadedDocument.Save("Output.pdf");
// Close the PDF document
pdfLoadedDocument.Close(true);
-
// Write the extracted OCR text to an output text file
File.WriteAllText("Output.txt", ocrText);
}
@@ -2523,24 +2532,18 @@ using (OCRProcessor processor = new OCRProcessor())
{
// Load the PDF document from the file stream
PdfLoadedDocument pdfLoadedDocument = new PdfLoadedDocument("Input.pdf");
-
// Set OCR language to English
processor.Settings.Language = Languages.English;
-
// Set the page segmentation mode to process sparse text with orientation and script detection
processor.Settings.PageSegment = PageSegmentMode.SparseTextOsd;
-
// Perform OCR on the loaded PDF document to extract text
processor.PerformOCR(pdfLoadedDocument, processor.TessDataPath, out OCRLayoutResult layoutResult);
-
// Extract the OCRed text from the first page and join lines with newline characters
string ocrText = string.Join("\n", layoutResult.Pages[0].Lines.Select(line => line.Text));
-
// Save the PDF document to the file stream
pdfLoadedDocument.Save("Output.pdf");
// Close the PDF document
pdfLoadedDocument.Close(true);
-
// Write the extracted OCR text to an output text file
File.WriteAllText("Output.txt", ocrText);
}
@@ -2556,23 +2559,17 @@ Imports Syncfusion.Pdf.Parsing
Using processor As New OCRProcessor()
' Load the PDF document from the file stream
Dim pdfLoadedDocument As New PdfLoadedDocument("Input.pdf")
-
' Set OCR language to English
processor.Settings.Language = Languages.English
-
' Set the page segmentation mode to process sparse text with orientation and script detection
processor.Settings.PageSegment = PageSegMode.SparseTextOsd
-
' Perform OCR on the loaded PDF document to extract text
Dim layoutResult As OCRLayoutResult
processor.PerformOCR(pdfLoadedDocument, processor.TessDataPath, layoutResult)
-
' Extract the OCRed text from the first page and join lines with newline characters
Dim ocrText As String = String.Join(Environment.NewLine, layoutResult.Pages(0).Lines.Select(Function(line) line.Text))
-
' Save the PDF document to the file stream
pdfLoadedDocument.Save("Output.pdf")
-
' Close the PDF document
pdfLoadedDocument.Close(True)
@@ -2610,7 +2607,6 @@ using (OCRProcessor processor = new OCRProcessor())
processor.TessDataPath = "TessdataBest/";
processor.Settings.Language = Languages.English;
processor.Settings.TesseractVersion = TesseractVersion.Version5_0;
-
// Determine how many frames/pages the TIFF contains.
int frameCount = img.GetFrameCount(FrameDimension.Page);
if (frameCount <= 1)
@@ -2626,7 +2622,6 @@ using (OCRProcessor processor = new OCRProcessor())
// Prefer Page dimension
try { img.SelectActiveFrame(FrameDimension.Page, i); }
catch { /* fallback if needed */ }
-
// Clone the selected frame to a standalone Bitmap for OCR (important for some engines)
using (Bitmap frameBmp = new Bitmap(img.Width, img.Height))
using (Graphics g = Graphics.FromImage(frameBmp))
@@ -2666,7 +2661,6 @@ using (OCRProcessor processor = new OCRProcessor())
processor.TessDataPath = "TessdataBest/";
processor.Settings.Language = Languages.English;
processor.Settings.TesseractVersion = TesseractVersion.Version5_0;
-
// Determine how many frames/pages the TIFF contains.
int frameCount = img.GetFrameCount(FrameDimension.Page);
if (frameCount <= 1)
@@ -2676,13 +2670,11 @@ using (OCRProcessor processor = new OCRProcessor())
frameCount = Math.Max(frameCount, img.GetFrameCount(FrameDimension.Resolution));
}
if (frameCount < 1) frameCount = 1;
-
for (int i = 0; i < frameCount; i++)
{
// Prefer Page dimension
try { img.SelectActiveFrame(FrameDimension.Page, i); }
catch { /* fallback if needed */ }
-
// Clone the selected frame to a standalone Bitmap for OCR (important for some engines)
using (Bitmap frameBmp = new Bitmap(img.Width, img.Height))
using (Graphics g = Graphics.FromImage(frameBmp))
@@ -2728,7 +2720,6 @@ Using processor As New OCRProcessor()
frameCount = Math.Max(frameCount, img.GetFrameCount(FrameDimension.Resolution))
End If
If frameCount < 1 Then frameCount = 1
-
For i As Integer = 0 To frameCount - 1
' Prefer Page dimension
Try
@@ -2742,7 +2733,6 @@ Using processor As New OCRProcessor()
Using g As Graphics = Graphics.FromImage(frameBmp)
g.DrawImage(img, 0, 0, img.Width, img.Height)
End Using
-
Dim pageText As String = processor.PerformOCR(frameBmp, processor.TessDataPath)
output.AppendLine($"--- Page {i + 1} ---")
output.AppendLine(If(pageText, String.Empty))
@@ -2750,7 +2740,6 @@ Using processor As New OCRProcessor()
End Using
Next
End Using
-
File.WriteAllText("Output.txt", output.ToString())
{% endhighlight %}
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/Getting-started-overview.md b/Document-Processing/Data-Extraction/NET/ocr-processor/Getting-started-overview.md
index d023765b34..06a9dc1129 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/Getting-started-overview.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/Getting-started-overview.md
@@ -15,19 +15,24 @@ To quickly get started with extracting text from scanned PDF documents in .NET u
The Syncfusion® OCR processor internally uses Tesseract libraries to perform OCR, so please copy the necessary Tessdata and TesseractBinaries folders from the NuGet package folder to the project folder to use the OCR feature.
### Prerequisites for Windows
+
Please refer to the following code sample for windows.
+{% tabs %}
{% highlight c# tabtitle="C#" %}
OCRProcessor processor = new OCRProcessor();
{% endhighlight %}
+{% endtabs %}
+{% tabs %}
{% highlight c# tabtitle="C#" %}
processor.PerformOCR(lDoc);
{% endhighlight %}
+{% endtabs %}
Download the language packages from the following link.
[https://github.com/tesseract-ocr/tessdata](https://github.com/tesseract-ocr/tessdata)
@@ -39,27 +44,33 @@ N> From 16.1.0.24 OCR is not a part of Essential Studio® and is a
Install the "libgdiplus" and "libc6-dev" packages. Please refer to the following commands to install the packages.
-{% highlight c# tabtitle="C#" %}
+{% tabs %}
+{% highlight bash %}
sudo apt-get update
sudo apt-get install libgdiplus
sudo apt-get install libc6-dev
{% endhighlight %}
+{% endtabs %}
Please refer to the following code snippet for Linux.
+{% tabs %}
{% highlight c# tabtitle="C#" %}
OCRProcessor processor = new OCRProcessor();
{% endhighlight %}
+{% endtabs %}
+{% tabs %}
{% highlight c# tabtitle="C#" %}
processor.PerformOCR(lDoc);
{% endhighlight %}
+{% endtabs %}
Download the language packages from the following link.
[https://github.com/tesseract-ocr/tessdata](https://github.com/tesseract-ocr/tessdata)
@@ -68,25 +79,31 @@ Download the language packages from the following link.
Install the "libgdiplus" and "tesseract" packages in the Mac machine where the OCR operations occur. Please refer to the following commands to install this package.
-{% highlight c# tabtitle="C#" %}
+{% tabs %}
+{% highlight bash %}
brew install mono-libgdiplus
brew install tesseract
{% endhighlight %}
+{% endtabs %}
Please refer to the following code sample for Mac.
+{% tabs %}
{% highlight c# tabtitle="C#" %}
OCRProcessor processor = new OCRProcessor();
{% endhighlight %}
+{% endtabs %}
+{% tabs %}
{% highlight c# tabtitle="C#" %}
processor.PerformOCR(lDoc);
{% endhighlight %}
+{% endtabs %}
### Perform OCR using C#
@@ -109,15 +126,18 @@ Step 3:Please use the OCR language data for other languages using the following
Step 4: Include the following namespace in your class file.
+{% tabs %}
{% highlight c# tabtitle="C#" %}
using Syncfusion.OCRProcessor;
using Syncfusion.Pdf.Parsing;
{% endhighlight %}
+{% endtabs %}
Step 5: Use the following code sample to perform OCR on the entire PDF document using PerformOCR method of the [OCRProcessor](https://help.syncfusion.com/cr/document-processing/Syncfusion.OCRProcessor.OCRProcessor.html) class in Program.cs file.
+{% tabs %}
{% highlight c# tabtitle="C#" %}
//Initialize the OCR processor.
@@ -136,6 +156,7 @@ using (OCRProcessor processor = new OCRProcessor())
}
{% endhighlight %}
+{% endtabs %}
By executing the program, you will get the PDF document as follows.
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/MAC.md b/Document-Processing/Data-Extraction/NET/ocr-processor/MAC.md
index 8d64405223..f4fcef732c 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/MAC.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/MAC.md
@@ -20,7 +20,7 @@ The [Syncfusion® .NET OCR library](https://www.syncfusion.com/doc
**Prerequisites**:
* Install .NET SDK: Ensure that you have the .NET SDK installed on your system. You can download it from the [.NET Downloads page](https://dotnet.microsoft.com/en-us/download).
-* Install Visual Studio: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download).
+* Install Visual Studio: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download?_exp_download=d53503e735).
Step 1: Create a new .NET Core console application project.

@@ -90,7 +90,7 @@ Click the Start button (green arrow) or press F5 to run the app.
**Prerequisites**:
* Install .NET SDK: Ensure that you have the .NET SDK installed on your system. You can download it from the [.NET Downloads page](https://dotnet.microsoft.com/en-us/download).
-* Install Visual Studio Code: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download).
+* Install Visual Studio Code: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download?_exp_download=d53503e735).
* Install C# Extension for VS Code: Open Visual Studio Code, go to the Extensions view (Ctrl+Shift+X), and search for 'C#'. Install the official [C# extension provided by Microsoft](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
Step 1: Open the terminal (Ctrl+` ) and run the following command to create a new .NET Core console application project.
@@ -98,7 +98,7 @@ Step 1: Open the terminal (Ctrl+` ) and run the following command to create a ne
```
dotnet new console -n CreatePdfMacOSApp
```
-Step 2: Replace ****CreatePdfMacOSApp** with your desired project name.
+Step 2: Replace **CreatePdfMacOSApp** with your desired project name.
Step 3: Navigate to the project directory using the following command
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/Troubleshooting.md b/Document-Processing/Data-Extraction/NET/ocr-processor/Troubleshooting.md
index 8d61ccc87c..2487cf7170 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/Troubleshooting.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/Troubleshooting.md
@@ -26,7 +26,7 @@ keywords: Assemblies
Set proper tesseract binaries and tessdata folder with all files and inner folders. The tessdata folder name is case-sensitive and should not change.
{% tabs %}
-{% highlight C# tabtitle="C# [Cross-platform]" %}
+{% highlight C# %}
//TesseractBinaries - path of the folder tesseract binaries.
OCRProcessor processor = new OCRProcessor(@"TesseractBinaries/");
@@ -209,7 +209,7 @@ By using the best tessdata, we can improve the OCR results. For more information
1.Execute the following command to install Tesseract 5.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
brew install tesseract
@@ -219,7 +219,7 @@ brew install tesseract
If the "brew" is not installed on your machine, you can install it using the following command.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@@ -241,7 +241,7 @@ using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract
3.Add the TessDataPath from bin folder. Refer to the example code below:
{% tabs %}
-{% highlight C# tabtitle="C# [Cross-platform]" %}
+{% highlight C# %}
using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract/5.3.2/lib"))
{
@@ -287,7 +287,7 @@ using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract
1. Install the leptonica.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
sudo apt-get install libleptonica-dev
@@ -299,7 +299,7 @@ sudo apt-get install libleptonica-dev
2.Install the tesseract.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
sudo apt-get install tesseract-ocr-eng
@@ -311,7 +311,7 @@ sudo apt-get install tesseract-ocr-eng
3. Copy the binaries (liblept.so and libtesseract.so) to the missing files exception folder in the project location.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
cp /usr/lib/x86_64-linux-gnu/liblept.so /home/syncfusion/linuxdockersample/linuxdockersample/bin/Debug/net7.0/liblept1753.so
@@ -319,7 +319,7 @@ cp /usr/lib/x86_64-linux-gnu/liblept.so /home/syncfusion/linuxdockersample/linux
{% endtabs %}
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
cp /usr/lib/x86_64-linux-gnu/libtesseract.so.4 /home/syncfusion/linuxdockersample/linuxdockersample/bin/Debug/net7.0/libSyncfusionTesseract.so
@@ -349,7 +349,7 @@ To resolve this problem, you should install all required dependencies in your Li
Step 1: Execute the following command in terminal window to check dependencies are installed properly.
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
ldd liblept1753.so
ldd libSyncfusionTesseract.so
@@ -359,7 +359,7 @@ ldd libSyncfusionTesseract.so
Run the following commands in terminal
Step 1:
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
sudo apt-get install libleptonica-dev libjpeg62
@@ -367,7 +367,7 @@ sudo apt-get install libleptonica-dev libjpeg62
{% endtabs %}
Step 2:
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5
@@ -375,7 +375,7 @@ ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.s
{% endtabs %}
Step 3:
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so
@@ -403,28 +403,18 @@ ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so
{% tabs %}
-{% highlight C# %}
+{% highlight bash %}
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
-
RUN apt-get update && \
-
apt-get install -yq --no-install-recommends \
-
libgdiplus libc6-dev libleptonica-dev libjpeg62
-
RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5
-
RUN ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so
-
-
USER app
-
WORKDIR /app
-
EXPOSE 8080
-
EXPOSE 8081
{% endhighlight %}
@@ -495,7 +485,7 @@ NuGet: Exception
The application failed to load Tesseract OCR DLLs when hosted on IIS, resulting in the error:
-Could not find a part of the path 'C:\inetpub\wwwroot\VizarCore\x64'.
+Could not find a part of the path 'C:\inetpub\wwwroot\YourApp\x64'.
Reason
@@ -569,7 +559,7 @@ Update your deployment YAML to include a writable temporary directory with `empt
{% tabs %}
-{% highlight C# %}
+{% highlight yaml %}
spec:
containers:
@@ -594,7 +584,7 @@ To ensure your container has permission to write to mounted volumes, add:
{% tabs %}
-{% highlight C# %}
+{% highlight yaml %}
securityContext:
runAsUser: 1000 # safer than root
@@ -612,7 +602,7 @@ If persistent storage is required, configure Azure Files:
{% tabs %}
-{% highlight C# %}
+{% highlight yaml %}
volumes:
- name: azurefile
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/WPF.md b/Document-Processing/Data-Extraction/NET/ocr-processor/WPF.md
index 7b159d2dbc..972c249e63 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/WPF.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/WPF.md
@@ -28,7 +28,7 @@ N> 2. Starting with v16.2.0.x, if you reference Syncfusion® assem
Step 3: Add a new button in **MainWindow.xaml** to perform OCR as follows.
{% tabs %}
-{% highlight CSHTML %}
+{% highlight XAML %}
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/Windows-Forms.md b/Document-Processing/Data-Extraction/NET/ocr-processor/Windows-Forms.md
index 2a2e2235b4..3f0136eef1 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/Windows-Forms.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/Windows-Forms.md
@@ -34,9 +34,7 @@ private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
- //
// button1
- //
this.button1.Location = new System.Drawing.Point(284, 162);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(190, 65);
@@ -44,9 +42,7 @@ private void InitializeComponent()
this.button1.Text = "Perform OCR on entire PDF document";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.btnCreate_Click);
- //
// Form1
- //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/azure.md b/Document-Processing/Data-Extraction/NET/ocr-processor/azure.md
index fa5ab88854..f89bc3ceb0 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/azure.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/azure.md
@@ -223,29 +223,29 @@ Step 1: Right-click the project and click Publish. Then, create a new profile in


-Step 4: To create a new app service, click **Create new** option.
+Step 2: To create a new app service, click **Create new** option.

-Step 5: Click the **Create** button to proceed with **App Service** creation.
+Step 3: Click the **Create** button to proceed with **App Service** creation.

-Step 6: Click the **Finish** button to finalize the **App Service** creation.
+Step 4: Click the **Finish** button to finalize the **App Service** creation.

-Step 7: Click deployment type.
+Step 5: Click deployment type.

-Step 8: Click **Close** button.
+Step 6: Click **Close** button.

-Step 9: Click the **Publish** button.
+Step 7: Click the **Publish** button.

-Step 10: Now, Publish has been succeeded.
+Step 8: Now, Publish has been succeeded.

-Step 11: Now, go to the Azure portal and select the Functions Apps. After running the service, click Get function URL > Copy. Include the URL as a query string in the URL. Then, paste it into the new browser tab. You will get a PDF document as follows.
+Step 9: Now, go to the Azure portal and select the Functions Apps. After running the service, click Get function URL > Copy. Include the URL as a query string in the URL. Then, paste it into the new browser tab. You will get a PDF document as follows.

A complete working sample can be downloaded from [GitHub](https://github.com/SyncfusionExamples/OCR-csharp-examples/tree/master/Azure/Azure%20Function).
diff --git a/Document-Processing/Data-Extraction/NET/ocr-processor/blazor.md b/Document-Processing/Data-Extraction/NET/ocr-processor/blazor.md
index d1257e2f22..8e503f5b02 100644
--- a/Document-Processing/Data-Extraction/NET/ocr-processor/blazor.md
+++ b/Document-Processing/Data-Extraction/NET/ocr-processor/blazor.md
@@ -20,7 +20,7 @@ The [Syncfusion® .NET OCR library](https://www.syncfusion.com/doc
**Prerequisites**:
* Install .NET SDK: Ensure that you have the .NET SDK installed on your system. You can download it from the [.NET Downloads page](https://dotnet.microsoft.com/en-us/download).
-* Install Visual Studio: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download).
+* Install Visual Studio: Download and install Visual Studio Code from the [official website](https://code.visualstudio.com/download?_exp_download=d53503e735).
Step 1: Create a new C# Blazor Server application project. Select Blazor App from the template and click Next.

@@ -93,11 +93,11 @@ public void ConfigureServices(IServiceCollection services)
Step 7: Inject ExportService into *FetchData.razor* using the following code.
{% tabs %}
-{% highlight c# tabtitle="C#" %}
+{% highlight CSHTML %}
@inject ExportService exportService
@inject Microsoft.JSInterop.IJSRuntime JS
-@using System.IO;
+@using System.IO
{% endhighlight %}
{% endtabs %}
@@ -152,7 +152,7 @@ public static class FileUtil
Step 11: Add the following JavaScript function in the *_Host.cshtml* available under the Pages folder.
{% tabs %}
-{% highlight XAML %}
+{% highlight CSHTML %}