diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Bookmark-Navigation.md b/Document-Processing/PDF/PDF-Viewer/winforms/Bookmark-Navigation.md
index 7e21943cff..15bd09e971 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Bookmark-Navigation.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Bookmark-Navigation.md
@@ -11,12 +11,12 @@ documentation: ug
[WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) control allows users to navigate to the bookmarks present in the loaded PDF document at the UI level.
-## Steps to perform bookmark navigation in PdfViewerControl.
+## Steps to perform bookmark navigation in PdfViewerControl
-1. Open the bookmarks contained PDF document to enable the bookmark button in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
+1. Open a PDF document containing bookmarks to enable the bookmark button in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
2. Clicking on the bookmark button from the left pane will list the bookmarks present in the PDF document.
3. To jump to a specific section, click its name in the bookmark pane.
-4. If the bookmark has some children, you can explore them by clicking on the “+” button to the left of it.
+4. If the bookmark has child bookmarks, you can explore them by clicking on the “+” button to the left of it.

@@ -93,7 +93,7 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
{% endhighlight %}
{% endtabs %}
-N> The sample project to perform the operation is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Bookmarks Navigation/PDFBookmarks).
+N> The sample project to perform the operation is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Bookmarks%20Navigation/PDFBookmarks).
## Enabling and disabling bookmark feature
@@ -127,6 +127,6 @@ pdfViewerControl.IsBookmarkEnabled = false
{% endhighlight %}
{% endtabs %}
-The following screenshot shown the Bookmark navigation in PDF Viewer.
+The following screenshot shows the Bookmark navigation in PDF Viewer.

diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Getting-Started.md b/Document-Processing/PDF/PDF-Viewer/winforms/Getting-Started.md
index 05cdb5f5e3..98970e57a3 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Getting-Started.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Getting-Started.md
@@ -19,12 +19,12 @@ You can create a **Windows Forms Application** using Visual Studio via [Microsof
## Assemblies Deployment
-To add a WinForms PdfViewer component to your application by installing it via NuGet packages(Recommended) or by manually adding the required assemblies to the project.
+To add a WinForms PdfViewer component to your application by installing it via NuGet packages (Recommended) or by manually adding the required assemblies to the project.
{% tabcontents %}
{% tabcontent NuGet Package %}
-The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) (PdfViewerControl) and dependent assemblies can be found from the below location in your machine.
+The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) (PdfViewerControl) and dependent assemblies can be found at the following location on your machine.
### Install Syncfusion® Windows Forms PdfViewer NuGet packages
@@ -38,7 +38,7 @@ To add **Windows Forms PdfViewer** component in the application, open the NuGet
### Add Syncfusion® WinForms PdfViewer Assemblies
-Below table describes, list of assemblies required to be added in project when the [WinForms PdfViewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) control is used in your application.
+The table below lists the required assemblies to be added in project when the [WinForms PdfViewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) control is used in your application.
@@ -60,11 +60,11 @@ This library is responsible for Pdfium integration and image generation, enhanci
Syncfusion.PdfViewer.Windows.dll
-This component contains the rendering area and other related UI elements.
+This assembly contains the rendering area and other related UI elements.
Syncfusion.Shared.Base.dll
-This component contains various UI controls (ColorPickerPalette and Numeric UpDown) that are used in the PDF Viewer.
+This assembly contains various UI controls (ColorPickerPalette and Numeric UpDown) that are used in the PDF Viewer.
{% endtabcontent %}
@@ -72,12 +72,12 @@ This component contains various UI controls (ColorPickerPalette and Numeric UpDo
{% endtabcontents %}
N>* Starting with version 23.1.x, Syncfusion PdfToImageConverter is necessary for PdfViewer applications.
-N>* Starting with v16.2.0.x, if you reference Syncfusion®; assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to [this link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your Windows Forms application to use our components.
+N>* Starting with version 16.2.0.x, if you reference Syncfusion®; assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to [this licensing guide](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your Windows Forms application to use our components.
## Add Windows Forms PdfViewer component
-WinForms PdfViewer control can be added to an application either through the designer (XAML) or programmatically using code.
+WinForms PdfViewer control can be added to an application either through the Windows Forms Designer or programmatically using code.
{% tabcontents %}
{% tabcontent Via Designer %}
@@ -90,7 +90,7 @@ WinForms PdfViewer control can be added to an application either through the des

-3. This will add the instance 'pdfViewerControl1' to the Designer cs file. The PDF can be loaded in the Form1.cs file using the [Load](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_Load_System_String_) method.
+3. This will add the instance 'pdfViewerControl1' to the Designer.cs file. The PDF can be loaded in the Form1.cs file using the [Load](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_Load_System_String_) method.
{% tabs %}
{% highlight c# tabtitle="C#" %}
@@ -129,7 +129,7 @@ Imports Syncfusion.Windows.Forms.PdfViewer
{% endtabs %}
-2. Create PdfViewerControl instance and load the PDF in Form1.cs.
+2. Create a PdfViewerControl instance and load the PDF inside Constructor in Form1.cs. Also place the sample PDF document in the project folder.
{% tabs %}
{% highlight c# tabtitle="C#" %}
@@ -143,7 +143,7 @@ Controls.Add(pdfViewerControl1);
pdfViewerControl1.Dock = DockStyle.Fill;
//Loading the document in the PdfViewerControl
-pdfViewerControl1.Load("Sample.pdf");
+pdfViewerControl1.Load(@"../../Sample.pdf");
{% endhighlight %}
{% highlight vb tabtitle="VB.NET" %}
@@ -157,7 +157,7 @@ Controls.Add(pdfViewerControl1)
pdfViewerControl1.Dock = DockStyle.Fill
'Loading the document in the PdfViewerControl
-pdfViewerControl1.Load("Sample.pdf")
+pdfViewerControl1.Load(@"../../Sample.pdf")
{% endhighlight %}
{% endtabs %}
@@ -170,7 +170,7 @@ pdfViewerControl1.Load("Sample.pdf")
N>[View Sample in GitHub.](https://github.com/syncfusion/pdf-viewer-sdk-winforms-demos/tree/master/pdfviewer/Getting%20Started/Pdf%20Viewer%20Demo)
-N> You can also explore our [WinForms PDF Viewer example](https://github.com/syncfusion/winforms-demos/tree/master/pdfviewer) that shows you how to render and configure the PDF Viewer. Looking for the full WinForms PDF Viewer component overview, features, pricing, and documentation? Visit the [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) page.
+N> You can also explore our [WinForms PDF Viewer example](https://github.com/syncfusion/pdf-viewer-sdk-winforms-demos/tree/master/pdfviewer) that shows you how to render and configure the PDF Viewer. Looking for the full WinForms PDF Viewer component overview, features, pricing, and documentation? Visit the [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) page.
## See Also
- [Working with PdfViewerControl](./working-with-pdf-viewer)
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Get-document-information.md b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Get-document-information.md
index d0625e4fda..3efc8e635f 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Get-document-information.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Get-document-information.md
@@ -31,7 +31,7 @@ string fileName = pdfViewer.DocumentInformation.FileName;
'Initialize the PDF Viewer
pdfViewer As New PdfViewerControl()
'Loads the PDF document in PDF Viewer
-pdfViewer.Load("../../Data/Barcode.pdf")
+pdfViewer.Load("input.pdf")
'Gets the filename of loaded PDF document
Dim fileName As String = pdfViewer.DocumentInformation.FileName
@@ -60,7 +60,7 @@ string filePath = pdfViewer.DocumentInformation.FilePath;
'Initialize the PDF Viewer
pdfViewer As New PdfViewerControl()
'Loads the PDF document in PDF Viewer
-pdfViewer.Load("../../Data/Barcode.pdf")
+pdfViewer.Load("input.pdf")
'Gets the file path of loaded PDF document
Dim filePath As String = pdfViewer.DocumentInformation.FilePath
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Hide-or-Disabling-Toolbar-Buttons.md b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Hide-or-Disabling-Toolbar-Buttons.md
index 13f4c37639..1a79a69ba9 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Hide-or-Disabling-Toolbar-Buttons.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/Hide-or-Disabling-Toolbar-Buttons.md
@@ -7,7 +7,7 @@ control: PdfViewerControl
documentation: ug
---
-# Hide or disable the Toolbar Button
+# Hide or disable Toolbar Buttons
In the WinForms PDF Viewer, there is an API called [ToolbarSettings](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.DocumentToolbarSettings.html) that allows you to access and manage toolbar buttons. To hide a specific button, use the IsVisible property associated with that button. By setting IsVisible to false, the button will be hidden from the toolbar.
@@ -15,10 +15,10 @@ The following code snippet demonstrates how to hide the Open and Save buttons in
{% tabs %}
{%highlight c#%}
-//Load the document ot PDFViewer control
- pdfviewerControl.Load("Input.pdf");
-
-//Change the visibility of open and save button
+//Load the document to PDFViewer control
+pdfviewerControl.Load("Input.pdf");
+
+//Change the visibility of Open and Save buttons
pdfviewerControl.ToolbarSettings.OpenButton.IsVisible = false;
pdfviewerControl.ToolbarSettings.SaveButton.IsVisible = false;
@@ -35,6 +35,6 @@ pdfviewerControl.ToolbarSettings.SaveButton.IsVisible = False
{%endhighlight%}
{% endtabs %}
-The following is the image of a PDF document which hides the Open and Save button in Toolbar.
+The following image shows the PDF Viewer with the Open and Save buttons hidden in the toolbar.

\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/How-to-make-Winforms-PdfViewer-have-enriched-features-like-WPF-PdfViewer.md b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/How-to-make-Winforms-PdfViewer-have-enriched-features-like-WPF-PdfViewer.md
index c1df86c5a6..e75947c036 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/How-to-make-Winforms-PdfViewer-have-enriched-features-like-WPF-PdfViewer.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/How-to-make-Winforms-PdfViewer-have-enriched-features-like-WPF-PdfViewer.md
@@ -8,15 +8,15 @@ documentation: ug
---
# How to Add WPF PdfViewer Features to WinForms PdfViewer
-To leverage the advanced features offered by the WPF PdfViewer, such as adding annotations, form filling, signatures, stamps, sticky notes, and more, you can [integrate the WPF PdfViewer into the Windows Forms]( https://support.syncfusion.com/kb/article/7882/how-to-host-pdf-viewer-in-windows-forms-application ) and take advantage of its extensive feature sets.
+To leverage the advanced features offered by the WPF PdfViewer, such as adding annotations, form filling, signatures, stamps, sticky notes, and more, you can [integrate the WPF PdfViewer into the Windows Forms](https://support.syncfusion.com/kb/article/7882/how-to-host-pdf-viewer-in-windows-forms-application) and take advantage of its extensive feature sets.
-we can host a WPF PdfViewer control within a Windows Forms application using an ElementHost. By embedding the WPF PdfViewer, you can access advanced features available in the WPF control while maintaining a Windows Forms interface.
+You can host a WPF PdfViewer control within a Windows Forms application using an ElementHost. By embedding the WPF PdfViewer, you can access advanced features available in the WPF control while maintaining a Windows Forms interface.
## Steps to host the WPF PdfViewer in the WinForms application
-1. Add an WPF UserControl and install the [Syncfusion.PdfViewer.WPF](https://www.nuget.org/packages/Syncfusion.PdfViewer.WPF) NuGet package to your WinForms application.
+1. Add a WPF UserControl and install the [Syncfusion.PdfViewer.WPF](https://www.nuget.org/packages/Syncfusion.PdfViewer.WPF) NuGet package to your WinForms application.
-2. Add the following Syncfusion® namespace in XAML to make use of the WPF [PdfViewerControl.](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html)
+2. Add the following Syncfusion® namespace in XAML to make use of the WPF [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
~~~xaml
- /// Interaction logic for PdfViewer.xaml
+ /// Interaction logic for PdfViewerUserControl.xaml
///
public partial class PdfViewerUserControl : UserControl
{
- public PdfViewer()
+ public PdfViewerUserControl()
{
InitializeComponent();
}
@@ -56,7 +58,7 @@ we can host a WPF PdfViewer control within a Windows Forms application using an
{%endhighlight%}
{% endtabs %}
-5. Add a panel to the form. Create an ElementHost object in the Form and add the created UserControl's object as child to the ElementHost object. Add the elementHost as a child to the panel as mentioned below.
+5. Add a panel to the form. Create an ElementHost object in the Form and add the created UserControl's instance as a child of the ElementHost object. Add the elementHost as a child of the panel as mentioned below.
{% tabs %}
{% highlight c# %}
@@ -104,4 +106,4 @@ namespace SampleWF
{%endhighlight%}
{% endtabs %}
-You can find the complete sample in the [Github](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/How-to/Host-WPFPdfViewer-in-Winforms/HostedPdfViewer) for your reference.
+You can find the complete sample in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/How-to/Host-WPFPdfViewer-in-Winforms/HostedPdfViewer) for your reference.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/get-mouse-position.md b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/get-mouse-position.md
index e3e2d6e7f1..d4e181da75 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/How-To/get-mouse-position.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/How-To/get-mouse-position.md
@@ -9,11 +9,11 @@ documentation: ug
# Get a mouse position to the page
-The [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html) notifies, you when performing the mouse click and mouse move operations in the PDF pages through the `PageClicked` and `PageMouseMove` events respectively. It also provides information such as the page index and mouse position to the page.
+The [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html) notifies you when performing the mouse click and mouse move operations in the PDF pages through the `PageClicked` and `PageMouseMove` events respectively. It also provides information such as the page index and mouse position on the page.
## Page clicked event
-The `PageClicked` event occurs when performing the mouse click operation on a PDF page, which is being displayed in the viewer. It provides the page index and the mouse position information through the [PageClickedEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PageClickedEventArgs.html) The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
+The `PageClicked` event occurs when performing the mouse click operation on a PDF page, which is being displayed in the viewer. It provides the page index and the mouse position information through the [PageClickedEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PageClickedEventArgs.html). The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
@@ -34,13 +34,13 @@ namespace PageMouseEventsDemo
pdfViewerControl1.PageClicked += PdfViewer_PageClicked;
}
#endregion
-
+
#region Event
void PdfViewer_PageClicked(object sender, PageClickedEventArgs args)
{
//Find the page number in which the mouse clicks occurred.
int currentPage = args.PageIndex;
- //Find the mouse position on above the document page
+ //Find the mouse position on the document page.
System.Drawing.PointF mousePosition = args.Position;
}
#endregion
@@ -68,16 +68,16 @@ namespace PageMouseEventsDemo
//Load the PDF file.
pdfViewerControl1.Load("../../Data/HTTP Succinctly.pdf");
//Wire the `PageMouseMove` event.
- pdfViewerControl1.PageMouseMove += Pdfviewer_PageMouseMove;
+ pdfViewerControl1.PageMouseMove += PdfViewer_PageMouseMove;
}
#endregion
-
+
#region Event
- void Pdfviewer_PageMouseMove(object sender, PageMouseMoveEventArgs args)
+ void PdfViewer_PageMouseMove(object sender, PageMouseMoveEventArgs args)
{
- //Find the page number in which the mouse clicks occurred.
+ //Find the page number in which the mouse moves occurred.
int currentPage = args.PageIndex;
- //Find the mouse position on above the document page
+ //Find the mouse position on the document page.
System.Drawing.PointF mousePosition = args.Position;
}
#endregion
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Interaction-Modes.md b/Document-Processing/PDF/PDF-Viewer/winforms/Interaction-Modes.md
index 592e4a4202..64357c1516 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Interaction-Modes.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Interaction-Modes.md
@@ -9,7 +9,7 @@ documentation: UG
# Working with Interaction Modes in Windows Forms PDF Viewer
-The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) supports following cursor modes for easy interaction with the PDF documents:
+The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) supports the following cursor modes for easy interaction with the PDF documents:
* Selection mode
* Panning mode
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Localization.md b/Document-Processing/PDF/PDF-Viewer/winforms/Localization.md
index 30eaeb49e5..8c46f290ba 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Localization.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Localization.md
@@ -131,7 +131,7 @@ The following table shows the default values for the common text used in the [Pd
Zoom
-
Zoom.
+
Zoom
ZoomIn
@@ -143,13 +143,13 @@ The following table shows the default values for the common text used in the [Pd
-## Adding Resource file
+## Adding Resource File
* Create a folder with name `Resources` in your application.
* Add default English (“en-US”) [Resx](https://github.com/syncfusion/winforms-controls-localization-resx-files/tree/master/Syncfusion.PdfViewer.Windows) (resource) file of [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html) in the `Resources` folder named as Syncfusion.PdfViewer.Windows.resx.
-* Create Resx (resource) file and named as Syncfusion.PdfViewer.Windows.[Culture name].resx.For example, Syncfusion.PdfViewer.Windows.fr.resx for French culture.
+* Create a Resx (resource) file and name it as Syncfusion.PdfViewer.Windows.[Culture name].resx. For example, Syncfusion.PdfViewer.Windows.fr.resx for French culture.
* Add the resource key such as `OpenDocument` and its corresponding localized value in Syncfusion.PdfViewer.Windows.fr.resx file. Refer the below screenshot for the same.
-* Execute the application in the French culture to see the changes.
+* Set the application's current culture (for example, `fr-FR`) in the `Program.cs` or `Form` constructor, and execute the application to see the localized text.

@@ -158,18 +158,18 @@ The following screenshot shows the [PdfViewerControl](https://help.syncfusion.co

## Localize Resource File with Different Assembly or Namespace
-In general, `PdfViewerControl` try to read the resource file from executing assembly and its default namespace by using [Assembly.GetExecuteAssembly](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly?view=net-5.0) method. When the resource file is located at different assembly or namespace, then it can be set to the `PdfViewerControl` by using `LocalizationManager.SetResources` method.
+In general, `PdfViewerControl` tries to read the resource file from executing assembly and its default namespace by using [Assembly.GetExecutingAssembly](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly?view=net-5.0) method. When the resource file is located at a different assembly or namespace, then it can be set to the `PdfViewerControl` by using `LocalizationManager.SetResources` method.
{% tabs %}
{% highlight c# %}
public Form1()
{
- Thread.CurrentThread.CurrentCulture = newSystem.Globalization.CultureInfo("ar-AE");
- Thread.CurrentThread.CurrentUICulture = newSystem.Globalization.CultureInfo("ar-AE");
+ Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("ar-AE");
+ Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ar-AE");
- // Set the Custom assembly and namespace for the localization.
- LocalizationManager.SetResources(typeof(Custom_Form).Assembly, "ClassLibrary");
- InitializeComponent();
+ // Set the Custom assembly and namespace for the localization.
+ LocalizationManager.SetResources(typeof(Custom_Form).Assembly, "ClassLibrary");
+ InitializeComponent();
}
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Magnifying-PDF-documents.md b/Document-Processing/PDF/PDF-Viewer/winforms/Magnifying-PDF-documents.md
index 45c73e90d8..3890b34629 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Magnifying-PDF-documents.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Magnifying-PDF-documents.md
@@ -1,7 +1,7 @@
---
layout: post
title: Magnifying PDF documents | Windows Forms | Syncfusion®
-description: Learn about Magnifying PDF documents support in Syncfusion®;WinForms Pdf Viewer control, its elements and more.
+description: Learn about Magnifying PDF documents support in Syncfusion® WinForms Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -9,11 +9,11 @@ documentation: ug
# Adjust magnification of PDF documents using WinForms PDF Viewer
-The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) has predefined set of zoom tools in the built-in toolbar, that allows you to change magnifications of the PDF document that is being displayed.
+The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) has a predefined set of zoom tools in the built-in toolbar that allows you to change the magnification of the PDF document that is being displayed.

-1. **Combo box**: It allows you to select a zoom percentage from the pre-defined set of values listed in the dropdown. Since it is editable, you can also provide your zoom values by double editing the text area.
+1. **Combo box**: It allows you to select a zoom percentage from the pre-defined set of values listed in the dropdown. Since it is editable, you can also provide your zoom values by double-clicking the text area.
2. **Zoom out button**: It allows you to reduce the zoom value by 25% from the current zoom percentage.
3. **Zoom in button**: It allows you to increase the zoom value by 25% from the current zoom percentage.
4. **Fit to width button**: It allows you to fit the document to the width of the control.
@@ -21,7 +21,7 @@ The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf
### Magnify the document to a given zoom percentage
-You can magnify the document to a given zoom percentage by using the [ZoomTo](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ZoomTo_System_Int32_) function of the PDF Viewer. Refer to the following code sample to apply the specific zoom percentage based on the page contents.
+You can magnify the document to a given zoom percentage by using the [ZoomTo](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ZoomTo_System_Int32_) function of the PDF Viewer. Refer to the following code sample to set a specific zoom percentage.
{% tabs %}
{% highlight c# %}
@@ -54,5 +54,7 @@ pdfViewer.ZoomMode = ZoomMode.FitWidth;
## Mouse and keyboard shortcuts
-**Ctrl (key) + Scroll the mouse wheel up** - To perform zoom in.
-**Ctrl (key) + Scroll the mouse wheel down** - To perform zoom out.
+You can use the following mouse and keyboard shortcuts to zoom in and out of the PDF document.
+
+**Ctrl + Scroll the mouse wheel up** - To perform zoom in.
+**Ctrl + Scroll the mouse wheel down** - To perform zoom out.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Right-To-Left.md b/Document-Processing/PDF/PDF-Viewer/winforms/Right-To-Left.md
index a3abf0dc3e..266d434289 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Right-To-Left.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Right-To-Left.md
@@ -1,6 +1,6 @@
---
layout: post
-title: RTL Support in WinForms PDF Viewer | Syncfusion®;
+title: RTL Support in WinForms PDF Viewer | Syncfusion®;
description: Learn about Right to Left (RTL) support in Syncfusion®; WinForms Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
@@ -14,7 +14,7 @@ The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf
## Code Changes for Enabling RTL
-To enable RTL support in the WinForms PDF Viewer, set the `RightToLeft` property of the PDF viewer control to `Yes`. Refer the following code snippet.
+To enable RTL support in the WinForms PDF Viewer, set the `RightToLeft` property of the PDF viewer control to `Yes`. Refer to the following code snippet.
{% tabs %}
{% highlight c# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Searching-Text.md b/Document-Processing/PDF/PDF-Viewer/winforms/Searching-Text.md
index 4c8ff952a8..cf2e70f668 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Searching-Text.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Searching-Text.md
@@ -15,7 +15,7 @@ The Essential® `PdfViewerControl` allows users to search a given text in the
## Search next instance of a text
-PDF Viewer allows you to search and highlight next instances of a text in the PDF document. The following code snippet illustrates how to search the next instance of a term “time” in the PDF document using the `PdfViewerControl` with respect to the current highlighted instance.
+PDF Viewer allows you to search and highlight the next instance of a text in the PDF document. The following code snippet illustrates how to search the next instance of the term "time" in the PDF document using the `PdfViewerControl` with respect to the current highlighted instance.
{% tabs %}
{% highlight c# %}
@@ -45,7 +45,7 @@ private void Next_Click(object sender, EventArgs e)
{
// search next instance of a term "time"
if (!string.IsNullOrEmpty("time"))
- pdfDocumentView.SearchNextText ("time");
+ pdfDocumentView.SearchNextText("time");
}
{% endhighlight %}
@@ -53,7 +53,7 @@ private void Next_Click(object sender, EventArgs e)
## Search previous instance of a text
-PDF Viewer allows you to search and highlight previous instances of a text in the PDF document. The following code snippet illustrates how to search the previous instance of a term “time” in the PDF document using the `PdfViewerControl` with respect to the current highlighted instance.
+PDF Viewer allows you to search and highlight the previous instance of a text in the PDF document. The following code snippet illustrates how to search the previous instance of the term "time" in the PDF document using the `PdfViewerControl` with respect to the current highlighted instance.
{% tabs %}
{% highlight c# %}
@@ -93,7 +93,7 @@ private void Previous_Click(object sender, EventArgs e)
PDF Viewer allows you to enable or disable highlighting all the occurrences of the searched text instance in the PDF pages.
-The following code example illustrates how to disable highlighting all the searched text instance.
+The following code example illustrates how to disable highlighting all the searched text instances.
{% tabs %}
{% highlight c# %}
@@ -170,9 +170,9 @@ IsMatchFound = pdfViewerControl1.FindText("targetText", textSearch)
## Find the total number of instances of a text in the PDF document
-PDF viewer allows you to find the total number of instances of a text in the PDF document using the [FindText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method.
+PDF Viewer allows you to find the total number of instances of a text in the PDF document using the [FindText](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method.
-The following code snippet illustrates how to find the total number of instances of a term “time” present in the PDF document using `PdfViewerControl`.
+The following code snippet illustrates how to find the total number of instances of the term "time" present in the PDF document using `PdfViewerControl`.
{% tabs %}
{% highlight c# %}
@@ -210,4 +210,4 @@ foreach (KeyValuePair> matchedText in matchedTextDetails)
}
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-ErrorOccured-Event.md b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-ErrorOccured-Event.md
index a0c02c4657..114ae7aa3c 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-ErrorOccured-Event.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-ErrorOccured-Event.md
@@ -1,7 +1,7 @@
---
layout: post
title: Working with ErrorOccured Event in WinForm PDFViewer | Syncfusion®
-description: Learn about Working with ErrorOccured Event in Syncfusion® Windows Forms PDF Viewer (PdfViewerControl) control and more details.
+description: Learn about Working with ErrorOccurred Event in Syncfusion® Windows Forms PDF Viewer (PdfViewerControl) control and more details.
platform: document-processing
control: PdfViewerControl
documentation: ug
@@ -9,7 +9,7 @@ documentation: ug
# Working with ErrorOccurred Event in WinForms PDF Viewer
-PDF Viewer provides support to identify the error using the ErrorOccurred Event,The [ErrorOccurred](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ErrorOccurred) event in the PdfViewerControl is triggered whenever an error occurs within the control. This event provides an opportunity to handle errors effectively by allowing developers to log the details or display appropriate messages to users when an issue arises within the [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
+PDF Viewer provides support to identify the error using the ErrorOccurred Event. The [ErrorOccurred](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ErrorOccurred) event in the PdfViewerControl is triggered whenever an error occurs within the control. This event provides an opportunity to handle errors effectively by allowing developers to log the details or display appropriate messages to users when an issue arises within the [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-Hyperlinks.md b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-Hyperlinks.md
index e6b86829ee..e9d965c104 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-Hyperlinks.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-Hyperlinks.md
@@ -15,10 +15,10 @@ The [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf
This event is triggered when the mouse pointer is placed over the hyperlink.
@@ -31,7 +31,7 @@ Arguments
-N> From the version 19.3, The `HyperLinkClickedEventArgs` is renamed to [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs.html). Also, We have renamed the `HyperLinkClicked` and `HyperLinkMouseOver` events to [HyperlinkClicked](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkClicked) and [HyperlinkMouseOver](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkMouseOver) respectively. Also, We have introduced [HyperlinkMouseOverEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs.html) to view the details of hyperlink when mouse is over.
+N> From version 19.3, the `HyperLinkClickedEventArgs` is renamed to [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs.html). Also, we have renamed the `HyperLinkClicked` and `HyperLinkMouseOver` events to [HyperlinkClicked](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkClicked) and [HyperlinkMouseOver](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkMouseOver) respectively. Also, we have introduced [HyperlinkMouseOverEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs.html) to view the details of the hyperlink when the mouse is over it.
## How to disable hyperlink navigation in PDF Viewer
@@ -45,7 +45,9 @@ N> From the version 19.3, we have introduced [Handled](https://help.syncfusion.c
//Initialize PDF Viewer.
PdfViewerControl pdfViewerControl = new PdfViewerControl();
-// Wires the event handler for `HyperlinkClicked` event.
+//Load the PDF.
+pdfViewerControl.Load("Sample.pdf");
+// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs args)
@@ -58,22 +60,22 @@ private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkClicked` event
-'Initialize PDF Viewer.
+' Initialize PDF Viewer.
Private pdfViewerControl As New PdfViewerControl()
'Load the PDF.
pdfViewerControl.Load("Sample.pdf")
+' Wires the event handler for `HyperlinkClicked` event.
AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
-Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
- 'Your code here...
+Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs)
+ ' Gets or sets the value to handle the navigation of hyperlink.
+ args.Handled = True
End Sub
{% endhighlight %}
{% endtabs %}
-
## How to retrieve the hyperlink details from PDF Viewer
You can retrieve the hyperlink details from PDF Viewer by using [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs.html) when the hyperlink is clicked and by using [HyperlinkMouseOverEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs.html) when the mouse is over the hyperlink.
@@ -86,20 +88,20 @@ Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
-// Wires the event handler for `HyperlinkClicked` event.
+// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs args)
{
//Returns the URI clicked in the PDF viewer control.
- string URI = args.Uri;
+ string URI = args.Uri;
}
{% endhighlight %}
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkClicked` event
+' Wires the event handler for `HyperlinkClicked` event.
AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
@@ -112,13 +114,13 @@ End Sub
### HyperlinkMouseOver Event
-You can acquire the details of the hyperlink which is hovered in the PDF file by using the [HyperlinkMouseOverEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs.html) in the [HyperlinkMouseOver](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkMouseOver) event.
+You can acquire the details of the hyperlink which is hovered in the PDF file by using the [HyperlinkMouseOverEventArgs](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs.html) in the [HyperlinkMouseOver](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_HyperlinkMouseOver) event.
Please refer to the below example for more details.
{% tabs %}
{% highlight c# %}
-// Hooks the event handler for `HyperlinkMouseOver` event.
+// Wires the event handler for `HyperlinkMouseOver` event.
pdfViewerControl.HyperlinkMouseOver += PdfViewerControl_HyperlinkMouseOver;
private void PdfViewerControl_HyperlinkMouseOver(object sender, Syncfusion.Windows.Forms.PdfViewer.HyperlinkMouseOverEventArgs e)
@@ -132,13 +134,13 @@ private void PdfViewerControl_HyperlinkMouseOver(object sender, Syncfusion.Windo
## Redirecting to a different Hyperlink
-You can navigate to different hyperlink irrespective of the hyperlink clicked. To redirect a hyperlink, you need to pass the value of [Handled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_Forms_PdfViewer_HyperlinkClickedEventArgs_Handled) parameter as true to stop the navigation of the hyperlink clicked. Then open the desired hyperlink that you want to navigate instead of the hyperlink clicked.
+You can navigate to a different hyperlink than the one clicked. To redirect a hyperlink, you need to pass the value of [Handled](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_Forms_PdfViewer_HyperlinkClickedEventArgs_Handled) parameter as `true` to stop the navigation of the clicked hyperlink. Then open the desired hyperlink that you want to navigate to instead.
Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
-// Wires the event handler for `HyperlinkClicked` event.
+// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.Forms.PdfViewer.HyperlinkClickedEventArgs args)
@@ -153,7 +155,7 @@ private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkClicked` event.
+' Wires the event handler for `HyperlinkClicked` event.
AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
@@ -162,4 +164,4 @@ Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.
End Sub
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-PDF-Viewer.md b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-PDF-Viewer.md
index 546b6e79de..b75f998b92 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-PDF-Viewer.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-PDF-Viewer.md
@@ -9,7 +9,7 @@ documentation: ug
# Working with PdfViewerControl in Windows Forms PDF Viewer
-Essential® [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) can display and print PDF files and export the pages as raster images and meta files.
+Essential® [WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) can display and print PDF files and export the pages as raster images and metafiles.
## Viewing PDF Files
@@ -19,7 +19,7 @@ A PDF can be loaded into the WinForms PDF Viewer either through the open file bu
{% highlight c# %}
//Initialize PdfViewerControl.
-PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
+PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
//Load the PDF.
pdfViewerControl1.Load("Sample.pdf");
@@ -42,7 +42,7 @@ You can load an encrypted document by using the overload in the [Load](https://h
{% highlight c# %}
//Initialize PdfViewerControl.
-PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
+PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
//Load the PDF.
pdfViewerControl1.Load("Sample.pdf", "password");
@@ -62,7 +62,7 @@ pdfViewerControl1.Load("Sample.pdf", "password")
### Exporting pages of PDF document as raster images
-Essential®; PdfViewerControl allows selected pages to be exported as raster images. Exporting can be done using the [ExportAsImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ExportAsImage_System_Int32_) method. This option helps to convert a PDF into an image.
+Essential® PdfViewerControl allows selected pages to be exported as raster images. Exporting can be done using the [ExportAsImage](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ExportAsImage_System_Int32_) method. This option helps to convert a PDF into an image.
{% tabs %}
{% highlight c# %}
@@ -98,7 +98,7 @@ Dim image() As Bitmap = pdfViewerControl1.ExportAsImage(0, 3)
{% endhighlight %}
{% endtabs %}
-### Exporting pages of PDF document as Vector Images
+### Exporting pages of PDF document as vector images
Exporting pages of PDF document as vector images can be done using the [ExportAsMetafile](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ExportAsMetafile_System_Int32_) method. The following code sample demonstrates how a PDF document can be exported as a Metafile.
@@ -138,7 +138,7 @@ Dim image() As Metafile = pdfViewerControl1.ExportAsMetafile(0, 3)
## Text selection
-In PDF, text can be selected by clicking the mouse left button and dragging the mouse pointer over the text.
+In a PDF, text can be selected by clicking the left mouse button and dragging the mouse pointer over the text.
### Detecting the completion of text selection
@@ -161,7 +161,7 @@ private void PdfViewer_TextSelectionCompleted(object sender, TextSelectionComple
### Copying the selected text
-The selected text can be copied by clicking Copy from the context menu, which appears when clicking right mouse button after the text is selected.
+The selected text can be copied by clicking Copy from the context menu that appears when right-clicking after the text is selected.

diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-themes.md b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-themes.md
index c682af7d59..68431ef1d0 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-themes.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/Working-with-themes.md
@@ -85,11 +85,13 @@ N> You can follow a similar step for all the other Office 2016 themes.
## Office 2019 theme
-It provides support for applying Office 2019 theme to `PdfViewerControl` and its associated elements. Before applying this theme to the control, the `Office2016Theme` assembly should be loaded in the main entry point of the application. Refer to the following code to load the assembly using [SkinManager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SkinManager.html).
+It provides support for applying Office 2019 theme to `PdfViewerControl` and its associated elements. Before applying this theme to the control, the `Office2019Theme` assembly should be loaded in the main entry point of the application. Refer to the following code to load the assembly using [SkinManager](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.SkinManager.html).
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.Forms;
+
static class Program
{
///
@@ -109,6 +111,8 @@ static class Program
{% highlight vb %}
+Imports Syncfusion.Windows.Forms
+
Module Program
'''
''' The main entry point for the application.
@@ -120,7 +124,7 @@ Module Program
Application.SetCompatibleTextRenderingDefault(False)
Application.Run(New Form1())
End Sub
-End Class
+End Module
{% endhighlight %}
{% endtabs %}
@@ -131,7 +135,7 @@ After loading the theme assembly, set the `ThemeName` to `Office2019Colorful` as
{% highlight c# %}
this.pdfViewerControl1.ThemeName = "Office2019Colorful";
-
+
{% endhighlight %}
{% highlight vb %}
@@ -152,6 +156,8 @@ It provides support for applying high contrast theme to `PdfViewerControl` and i
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.Forms;
+
static class Program
{
///
@@ -171,6 +177,8 @@ static class Program
{% highlight vb %}
+Imports Syncfusion.Windows.Forms
+
Module Program
'''
''' The main entry point for the application.
@@ -182,7 +190,7 @@ Module Program
Application.SetCompatibleTextRenderingDefault(False)
Application.Run(New Form1())
End Sub
-End Class
+End Module
{% endhighlight %}
{% endtabs %}
@@ -226,4 +234,4 @@ Me.pdfViewerControl1.ThemeName = "Default"
{% endhighlight %}
{% endtabs %}
-Find the sample from this [GitHub](https://github.com/syncfusion/file-formats-windows-forms-demos/tree/master/PdfViewer/Visual%20Styles/PDF%20Viewer%20Visual%20Styles) location.
+Find the sample from this [GitHub](https://github.com/syncfusion/file-formats-windows-forms-demos/tree/master/PdfViewer/Visual%20Styles/PDF%20Viewer%20Visual%20Styles) location.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/extract-text-from-PDF.md b/Document-Processing/PDF/PDF-Viewer/winforms/extract-text-from-PDF.md
index 6a1b559ffe..0016b61a49 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/extract-text-from-PDF.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/extract-text-from-PDF.md
@@ -107,7 +107,7 @@ namespace TextExtractionDemo
TextLines textLines = new TextLines();
//Pass the `TextLines` as a parameter to the `ExtractText` method.
pdfDocumentView.ExtractText(0, out textLines);
- //Gets specific line from the collection through the index.
+ //Get a specific line from the collection through the index.
TextLine line = textLines[0];
//Get text in the line.
string text = line.Text;
@@ -146,7 +146,7 @@ namespace TextExtractionDemo
TextLines textLines = new TextLines();
//Pass the `TextLines` as a parameter to the `ExtractText` method.
pdfDocumentView.ExtractText(0, out textLines);
- //Gets specific line from the collection through the index.
+ //Get a specific line from the collection through the index.
TextLine line = textLines[0];
//Get the word collection in a line.
List wordCollection = line.WordCollection;
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/pdf-rendering-engines.md b/Document-Processing/PDF/PDF-Viewer/winforms/pdf-rendering-engines.md
index 2cbed0386c..969b1db501 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/pdf-rendering-engines.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/pdf-rendering-engines.md
@@ -9,10 +9,10 @@ documentation: ug
# PDF Rendering Engines in Windows Forms PDF Viewer (PdfViewerControl)
-[WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) renders the PDF pages through 2 different rendering engines.
+[WinForms PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) renders the PDF pages through two different rendering engines.
* PDFium (Google Chrome’s PDF rendering engine)
-* SfPdf (Syncfusion’s Own PDF rendering engine)
+* SfPdf (Syncfusion’s own PDF rendering engine)
## PDFium
@@ -31,17 +31,17 @@ N>* From v34.1.x onwards, Pdfium is upgraded to the new version which was built

-N> PDFium rendering is not supported in Windows XP operating system.
+N> PDFium rendering is not supported in Windows XP.
### How to run PDFium in a restricted access environment
-If there is any access restriction applied to the application output folder, then the Syncfusion®; PDF Viewer control cannot able to extract and consume the PDFium engine as mentioned above.
+If there is any access restriction applied to the application output folder, then the Syncfusion®; PDF Viewer control is not able to extract and consume the PDFium engine as mentioned above.
In that situation, you need to add the following steps to consume the PDFium rendering engine.
-* Create a folder where your application can access, create & read files. For example, "d:\ThirdPartyBinaries\".
+* Create a folder that your application can access to create and read files. For example, "d:\ThirdPartyBinaries\".
* Update the path of this folder to the [ReferencePath](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ReferencePath) property of PDF Viewer control, like shown in the following code sample.
-* If [ReferencePath](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ReferencePath) is set, then PDF Viewer control extracts the PDFium binary inside that specified folder and consume the PDFium rendering engine.
+* If [ReferencePath](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ReferencePath) is set, then PDF Viewer control extracts the PDFium binary inside that specified folder and consumes the PDFium rendering engine.
{% tabs %}
{% highlight c# %}
@@ -64,7 +64,7 @@ namespace PdfViewerDemo
{% endhighlight %}
{% endtabs %}
-N>In the run time, the PDF viewer will check the custom folder path provided in the [ReferencePath](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ReferencePath) property. If you already placed the Pdfium assemblies in the custom folder path, it will refer to the already available assemblies from the location. It won’t generate the assemblies in the folder again.
+N>At run time, the PDF viewer will check the custom folder path provided in the [ReferencePath](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_ReferencePath) property. If you already placed the Pdfium assemblies in the custom folder path, it will refer to the already available assemblies from the location. It won’t generate the assemblies in the folder again.
N>You need to place the PDFium assembly in the correct folder structure as mentioned below.
N>* ThirdPartyBinaries
N> * Pdfium
@@ -77,7 +77,7 @@ N> * Pdfium.dll
## SfPdf
-`SfPdf` is the Syncfusion’s own PDF rendering engine. Before v16.3.0.x, PDF Viewer control has used this rendering engine as default to rendering the PDF pages. If you wish to use `SfPdf` rendering engine or face any compatibility issues with `Pdfium` rendering engine in your environment, you may set the [RenderingEngine](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_RenderingEngine) property to `SfPdf` as shown in the following code sample.
+`SfPdf` is Syncfusion's own PDF rendering engine. Before v16.3.0.x, the PDF Viewer control used this rendering engine as the default for rendering the PDF pages. If you wish to use `SfPdf` rendering engine or face any compatibility issues with `Pdfium` rendering engine in your environment, you may set the [RenderingEngine](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_RenderingEngine) property to `SfPdf` as shown in the following code sample.
N> The recommended PDF rendering engine is PDFium.
@@ -100,4 +100,4 @@ namespace PdfViewerDemo
}
}
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/printing-pdf-files.md b/Document-Processing/PDF/PDF-Viewer/winforms/printing-pdf-files.md
index 97187c7ab7..ad808819cd 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/printing-pdf-files.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/printing-pdf-files.md
@@ -9,7 +9,7 @@ documentation: ug
# Printing PDF Files in Windows Forms PDF Viewer (PdfViewerControl)
-[WinForms Pdf Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) Control allows printing loaded PDFs using the Print button in the toolbar. The following Print dialog will be opened upon clicking the Print button.
+[WinForms Pdf Viewer](https://www.syncfusion.com/pdf-viewer-sdk/winforms-pdf-viewer) Control allows printing loaded PDFs using the Print button in the toolbar. The following Print dialog opens when you click the Print button.

@@ -22,18 +22,18 @@ The [Print](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms
pdfviewer1.Print(false);
-{%endhighlight%}
+{% endhighlight %}
{% highlight vb %}
pdfviewer1.Print(False)
-{%endhighlight%}
+{% endhighlight %}
{% endtabs %}
## Customizing print size
-PdfViewerControl printer settings allows scaling PDF pages to shrink or enlarge while printing.
+PdfViewerControl printer settings allow scaling PDF pages to shrink or enlarge while printing.
### Actual Size
@@ -145,7 +145,7 @@ pdfViewerControl1.PrinterSettings.PageOrientation = PdfViewerPrintOrientation.Po
### Landscape
-Landscape option prints the PDF document in landscape orientation and it overrides the orientation settings provided in print dialog. The following code example illustrates the same.
+Landscape option prints the PDF document in landscape orientation and it overrides the orientation settings provided in the print dialog. The following code example illustrates the same.
{% tabs %}
{% highlight c# %}
@@ -199,7 +199,7 @@ namespace PrintEventsDemo
{
//Insert your code here
}
- # endregion
+ #endregion
}
}
@@ -240,10 +240,10 @@ namespace PrintEventsDemo
int currentPage = e.PageIndex;
//Find the total number of pages present in the file.
int pageCount = e.PageCount;
-
+
//Insert your code here
}
- # endregion
+ #endregion
}
}
@@ -252,7 +252,7 @@ namespace PrintEventsDemo
### After Print
-The [EndPrint](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_EndPrint) event occurs when the last page of the document has printed. It also occurs if the printing process is canceled or an exception occurs during the printing process. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
+The [EndPrint](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_EndPrint) event occurs when the last page of the document has printed. It also occurs if the printing process is canceled or an exception occurs during the printing process. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
@@ -282,7 +282,7 @@ namespace PrintEventsDemo
{
//Insert your code here
}
- # endregion
+ #endregion
}
}
@@ -295,13 +295,13 @@ PDF Viewer allows you to hide the following print status dialog when printing th

-It will be helpful if no UI interactions are required when printing. The following code shows how to hide the print status dialog using the [ShowPrintStatusDialog](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings.html#Syncfusion_Windows_PdfViewer_PdfViewerPrinterSettings_ShowPrintStatusDialog) property.
+This is useful when no UI interactions are required during printing. The following code shows how to hide the print status dialog using the [ShowPrintStatusDialog](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings.html#Syncfusion_Windows_PdfViewer_PdfViewerPrinterSettings_ShowPrintStatusDialog) property.
{% tabs %}
{% highlight c# %}
//Set ShowPrintStatusDialog property as false.
-pdfViewerControl1.PrinterSettings.ShowPrintStatusDialog = False;
+pdfViewerControl1.PrinterSettings.ShowPrintStatusDialog = false;
{% endhighlight %}
@@ -313,4 +313,4 @@ pdfViewerControl1.PrinterSettings.ShowPrintStatusDialog = False
{% endhighlight %}
{% endtabs %}
-N> The complete sample project of the Print Events is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Printing/PrintEventsDemo).
+N> The complete sample project of the Print Events is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Printing/PrintEventsDemo).
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/saving-pdf-files.md b/Document-Processing/PDF/PDF-Viewer/winforms/saving-pdf-files.md
index 7b610954db..335557246d 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/saving-pdf-files.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/saving-pdf-files.md
@@ -9,7 +9,7 @@ documentation: ug
# Saving PDF Files in Windows Forms PDF Viewer (PdfViewerControl)
-The Save feature in the [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html) helps you to keep the file up to date with any modifications and prevent your work from being lost by allowing you to save the file in the local disk.
+The Save feature in the [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html) helps you to keep the file up to date with any modifications and prevent your work from being lost by allowing you to save the file to the local disk.

@@ -21,7 +21,7 @@ Save can be performed using the following steps.
## Programmatically Save the Loaded PDF Document
-WinForms PDFViewer allows a user to save the loaded PDF file to a specific location using the PDF Viewer [LoadedDocument](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_LoadedDocument) object. Refer to the following code sample.
+WinForms PDF Viewer allows a user to save the loaded PDF file to a specific location using the PDF Viewer [LoadedDocument](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_Forms_PdfViewer_PdfViewerControl_LoadedDocument) object. Refer to the following code sample.
{% tabs %}
{% highlight c# %}
@@ -104,4 +104,4 @@ namespace SaveEventsDemo
{% endhighlight %}
{% endtabs %}
-N> The complete sample project of the Save Events is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Save/SaveEventsDemo).
+N> A complete sample project demonstrating the Save events is available in the [GitHub](https://github.com/SyncfusionExamples/WinForms-PDFViewer-Examples/tree/master/Save/SaveEventsDemo).
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/winforms/working-with-pdfdocumentview.md b/Document-Processing/PDF/PDF-Viewer/winforms/working-with-pdfdocumentview.md
index 65906f8547..994b913dce 100644
--- a/Document-Processing/PDF/PDF-Viewer/winforms/working-with-pdfdocumentview.md
+++ b/Document-Processing/PDF/PDF-Viewer/winforms/working-with-pdfdocumentview.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Working with WinForms PDF Viewer with PdfDocumentView| Syncfusion®
-description: Learn here about working with Syncfusion®; Windows Forms PDFDocumentView control, its elements and more details.
+title: Working with WinForms PDF Viewer with PdfDocumentView| Syncfusion®
+description: Learn here about working with Syncfusion® Windows Forms PDFDocumentView control, its elements and more details.
platform: document-processing
control: PdfViewerControl
documentation: ug
@@ -9,17 +9,17 @@ documentation: ug
# Adding PdfDocumentView to an Application
-The [PdfDocumentView](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView.html) control allows you to view PDF files without a toolbar. Other features are similar to the PdfViewerControl.
+The [PdfDocumentView](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView.html) control allows you to view PDF files without a toolbar. Other features are similar to the [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
## Adding in designer
-1. Open your form in the designer. Add the Syncfusion®; controls to your .NET toolbox in Visual Studio if you haven't done so already (the install would have automatically done this unless you selected not to complete toolbox integration during installation).
+1. Open your form in the designer. Add the Syncfusion® controls to your .NET toolbox in Visual Studio if you haven't done so already (the install would have automatically done this unless you selected not to complete toolbox integration during installation).
- 
+ 
-2. Drag the PdfDocumentView from the toolbox onto the form. Appearance and behavior related aspects of the PdfDocumentView can be controlled by setting the appropriate properties through the properties grid.
+2. Drag the PdfDocumentView from the toolbox onto the form. The appearance and behavior of the PdfDocumentView can be controlled by setting the appropriate properties in the properties grid.
- 
+ 
3. This will add the instance 'pdfDocumentView1' to the Designer cs file. The PDF can be loaded in the Form cs file using the [Load](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_Forms_PdfViewer_PdfDocumentView_Load_System_String_) method.
@@ -91,7 +91,7 @@ Controls.Add(pdfDocumentView1)
{% endcapture %}
{{ codesnippet3 | OrderList_Indent_Level_1 }}
-N> You can also explore our [WinForms PDF Viewer example](https://github.com/syncfusion/winforms-demos/tree/master/pdfviewer) that shows you how to render and configure the PDF Viewer.
+N> You can also explore our [WinForms PDF Viewer example](https://github.com/syncfusion/pdf-viewer-sdk-winforms-demos) that shows you how to render and configure the PDF Viewer.
## See Also
- [Getting started](./Getting-Started)
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-current-page-being-displayed.md b/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-current-page-being-displayed.md
index 9d1b5a3b9b..c1acdb2873 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-current-page-being-displayed.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-current-page-being-displayed.md
@@ -1,26 +1,28 @@
---
layout: post
title: Acquire current page being displayed in WPF Pdf Viewer | Syncfusion®
-description: Learn about Acquire current page being displayed support in Syncfusion®; WPF Pdf Viewer control and more.
+description: Learn about Exporting PDF pages support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---
-# Acquire current page being displayed in WPF Pdf Viewer
+# Acquire the current page being displayed in WPF Pdf Viewer
PDF Viewer supports acquiring the index of the page being displayed in the PDF Viewer at any moment using the [CurrentPageIndex](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_CurrentPageIndex) property. The following code example illustrates the same.
{% tabs %}
{% highlight C# %}
+using Syncfusion.Windows.PdfViewer;
+
//Initialize PDF Viewer.
PdfViewerControl pdfViewer1 = new PdfViewerControl();
//Load the PDF.
pdfViewer1.Load("Sample.pdf");
-// Acquiring the number of page being displayed in the Viewer
-int pageCount = pdfviewer1.CurrentPageIndex;
+// Acquiring the index of the page being displayed in the Viewer
+int pageIndex = pdfViewer1.CurrentPageIndex;
{% endhighlight %}
@@ -28,13 +30,15 @@ int pageCount = pdfviewer1.CurrentPageIndex;
{% highlight vbnet %}
+Imports Syncfusion.Windows.PdfViewer
+
'Initialize PDF Viewer.
-Private pdfViewer1 As New PdfViewerControl()
+Dim pdfViewer1 As New PdfViewerControl()
'Load the PDF.
pdfViewer1.Load("Sample.pdf")
-' Acquiring the number of page being displayed in the Viewer
-Dim pageCount As Integer = pdfviewer1. CurrentPageIndex
+' Acquiring the index of the page being displayed in the Viewer
+Dim pageIndex As Integer = pdfViewer1.CurrentPageIndex
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-total-number-of-pages.md b/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-total-number-of-pages.md
index bc6ec4aac0..77d2521d07 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-total-number-of-pages.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Acquiring-total-number-of-pages.md
@@ -1,7 +1,7 @@
---
layout: post
title: Acquire total number of pages in WPF Pdf Viewer | Syncfusion®
-description: Learn about Acquire total number of pages support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
+description: Learn how to acquire the total number of pages in Syncfusion® WPF Pdf Viewer control.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -9,7 +9,7 @@ documentation: ug
# Acquire total number of pages in WPF Pdf Viewer
-PDF Viewer provides the total number of the pages in the PDF document that is being loaded into the PDF Viewer. This value can be acquired with the help of [PageCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PageCount) property in the PDF Viewer control, the following code example illustrates the same.
+PDF Viewer provides the total number of pages in the PDF document that is being loaded. This value can be acquired with the help of the [PageCount](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PageCount) property of the PDF Viewer control. The following code example illustrates the same.
{% tabs %}
{% highlight C# %}
@@ -20,7 +20,7 @@ PdfViewerControl pdfViewer1 = new PdfViewerControl();
pdfViewer1.Load("Sample.pdf");
// Acquiring the total number of pages in the document being loaded
-int pageCount = pdfviewer1.PageCount;
+int pageCount = pdfViewer1.PageCount;
{% endhighlight %}
@@ -34,6 +34,6 @@ Private pdfViewer1 As New PdfViewerControl()
pdfViewer1.Load("Sample.pdf")
'Acquiring the total number of pages in the document being loaded
-Dim pageCount As Integer = pdfviewer1.PageCount
+Dim pageCount As Integer = pdfViewer1.PageCount
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Bookmark-Navigation.md b/Document-Processing/PDF/PDF-Viewer/wpf/Bookmark-Navigation.md
index 9f056e2734..3df0c099d5 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Bookmark-Navigation.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Bookmark-Navigation.md
@@ -11,12 +11,12 @@ documentation: ug
PDF Viewer control allows users to navigate to the bookmarks present in the loaded PDF document at UI level.
-## Steps to perform bookmark navigation in PdfViewerControl.
+## Steps to perform bookmark navigation in PdfViewerControl
-1. Open the bookmarks contained PDF document to enable the bookmark button in `PdfViewerControl`.
-2. Clicking on the bookmark button from the left pane, will list the bookmarks present in the PDF document.
-3. To jump to a specific section, click its name in the bookmark pane.
-4. If the bookmark has some children, you can explore them by clicking on the “+” button to the left of it.
+1. Open the bookmarks contained PDF document to enable the bookmark button in `PdfViewerControl`.
+2. Click the bookmark button from the left pane to list the bookmarks present in the PDF document.
+3. To jump to a specific section, click its name in the bookmark pane.
+4. If the bookmark has some children, you can explore them by clicking on the "+" button to the left of it.

@@ -92,7 +92,7 @@ private void PdfViewer_DocumentLoaded(object sender, System.EventArgs args)
{% endhighlight %}
{% endtabs %}
-N>You can also explore our [WPF PDF Viewer example](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Navigation/Bookmark/Bookmark_Navigation) to know how to Programmatically navigate to a bookmark destination in pdfviewer.
+N> You can also explore our [WPF PDF Viewer example](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Navigation/Bookmark/Bookmark_Navigation) to know how to programmatically navigate to a bookmark destination in pdfviewer.
## Enabling and disabling bookmark feature
@@ -120,19 +120,19 @@ pdfViewerControl.IsBookmarkEnabled = false;
{% endhighlight %}
{% highlight VB %}
-'Bookmark feature is disabled
+//Bookmark feature is disabled
pdfViewerControl.IsBookmarkEnabled = false
{% endhighlight %}
{% endtabs %}
-The following screenshot shown the Bookmark navigation in `PdfViewerControl`,
+The following screenshot shows the Bookmark navigation in `PdfViewerControl`,

-## Expand bookmark panel Programmatically
+## Expand bookmark panel programmatically
-The bookmark are displayed by clicking the bookmark icon in the left panel.To display bookmark panel from code behind, use the following code example.
+The bookmarks are displayed by clicking the bookmark icon in the left panel. To display the bookmark panel from code behind, use the following code example.
{% tabs %}
{% highlight C# %}
@@ -140,9 +140,9 @@ The bookmark are displayed by clicking the bookmark icon in the left panel.To di
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
- pdfviewer.Load(pdf);
+ pdfViewer.Load(pdf);
//By default, the bookmark panel IsExpanded is false.
- pdfviewer.BookMarkSettings.IsExpanded = true;
+ pdfViewer.BookMarkSettings.IsExpanded = true;
}
{% endhighlight %}
@@ -151,10 +151,10 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
'By default, the bookmark panel IsExpanded is false.
- pdfviewer.BookMarkSettings.IsExpanded = true
+ pdfViewer.BookMarkSettings.IsExpanded = true
End Sub
{% endhighlight %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-color-of-the-Loading-Indicator.md b/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-color-of-the-Loading-Indicator.md
index 19f778a664..21cb5066aa 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-color-of-the-Loading-Indicator.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-color-of-the-Loading-Indicator.md
@@ -1,7 +1,7 @@
---
layout: post
title: Change Loading Indicator color in WPF Pdf Viewer | Syncfusion®
-description: Learn about Change the color of the Loading Indicator support in Syncfusion®; WPF Pdf Viewer control and more.
+description: Learn how to change the color of the Loading Indicator in Syncfusion®; WPF Pdf Viewer control and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -20,7 +20,7 @@ PdfViewerControl pdfViewer1 = new PdfViewerControl();
pdfViewer1.Load("Sample.pdf");
// Changing the color of the loading indicator to Red
-pdfviewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0);
+pdfViewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0);
{% endhighlight %}
@@ -33,7 +33,7 @@ Private pdfViewer1 As New PdfViewerControl()
pdfViewer1.Load("Sample.pdf")
'Changing the color of the loading indicator to Red
-pdfviewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0)
+pdfViewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0)
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-text-displayed-in-the-loading-indicator.md b/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-text-displayed-in-the-loading-indicator.md
index 22f1504bff..c15b474fae 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-text-displayed-in-the-loading-indicator.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Changing-the-text-displayed-in-the-loading-indicator.md
@@ -1,7 +1,7 @@
---
layout: post
title: Change the text displayed in WPF Pdf Viewer | Syncfusion®
-description: Learn about Change the text displayed in the loading indicator support in Syncfusion®; WPF Pdf Viewer control and more.
+description: Learn how to change the text displayed in the loading indicator in the Syncfusion® WPF Pdf Viewer control.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -15,7 +15,7 @@ PDF Viewer allows you to change the text displayed in the loading indicator. The
{% highlight C# %}
// Changing the text displayed in the loading indicator
-pdfviewer1. LoadingIndicator.LoadingMessage = "Document loading";
+pdfviewer1.LoadingIndicator.LoadingMessage = "Document loading";
{% endhighlight %}
@@ -27,4 +27,4 @@ pdfviewer1. LoadingIndicator.LoadingMessage = "Document loading";
pdfviewer1.LoadingIndicator.LoadingMessage = "Document loading"
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Customized-ConetextMenu-Images/Customized-Context-Menu-1.png b/Document-Processing/PDF/PDF-Viewer/wpf/Customized-ContextMenu-Images/Customized-Context-Menu-1.png
similarity index 100%
rename from Document-Processing/PDF/PDF-Viewer/wpf/Customized-ConetextMenu-Images/Customized-Context-Menu-1.png
rename to Document-Processing/PDF/PDF-Viewer/wpf/Customized-ContextMenu-Images/Customized-Context-Menu-1.png
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Customized-ConetextMenu-Images/Customized-Context-Menu-2.png b/Document-Processing/PDF/PDF-Viewer/wpf/Customized-ContextMenu-Images/Customized-Context-Menu-2.png
similarity index 100%
rename from Document-Processing/PDF/PDF-Viewer/wpf/Customized-ConetextMenu-Images/Customized-Context-Menu-2.png
rename to Document-Processing/PDF/PDF-Viewer/wpf/Customized-ContextMenu-Images/Customized-Context-Menu-2.png
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Customizing-context-menu.md b/Document-Processing/PDF/PDF-Viewer/wpf/Customizing-context-menu.md
index fa60b96ad2..39af956d84 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Customizing-context-menu.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Customizing-context-menu.md
@@ -1,7 +1,7 @@
---
layout: post
title: Customizing context menu in WPF Pdf Viewer | Syncfusion®
-description: Learn about Customizing context menu support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
+description: Learn about Customizing context menu support in Syncfusion® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -22,29 +22,30 @@ Arguments
ContextMenuOpening Event
-This Triggered before the context menu is displayed,this event allows users to dynamically modify menu items.
+This is triggered before the context menu is displayed, this event allows users to dynamically modify menu items.
ContextMenuOpeningEventArgs
ContextMenuItemClicked Event
-This event is triggered when a menu item is clicked,this event enables users to handle menu actions programmatically.
+This event is triggered when a menu item is clicked, this event enables users to handle menu actions programmatically.
ContextMenuItemClickedEventArgs
## How to customize the context menu items before opening.
-The `ContextMenuOpening` Event allows users to customize and manage context menus dynamically,based on the source type where the context menu is triggered. This event provides the flexibility to modify, add, or suppress menu items based on the specific operation.
+The `ContextMenuOpening` Event allows users to customize and manage context menus dynamically, based on the source type where the context menu is triggered. This event provides the flexibility to modify, add, or suppress menu items based on the specific operation.
{% tabs %}
{% highlight c# %}
-//Wire the `ContextMenuOpening` event.
+//Wire the `ContextMenuOpening` event in the code-behind (for example, in the constructor or the Loaded event of the window).
pdfViewer.ContextMenuOpening += PdfViewer_ContextMenuOpening;
{% endhighlight %}
{% endtabs %}
-Using the `ContextMenuOpeningEventArgs`, you can add,remove or hide context menu items.
+Using the `ContextMenuOpeningEventArgs`, you can add, remove or hide context menu items.
Please refer to the following example for more details.
+
### Add the context menu item.
You can enhance the existing default context menu by adding new menu items to it or inserting them at specific positions based on the source type that triggers the menu. This allows for dynamic customization to suit various use cases, such as adding custom options for annotations, redactions, text selection, or signature fields.
{% tabs %}
@@ -53,7 +54,7 @@ You can enhance the existing default context menu by adding new menu items to it
{
if (e.Source == "Annotation")
{
- e.MenuItems.Insert(0,(new ContextMenuItem { Content = "Lock Annotation" }));
+ e.MenuItems.Insert(0,(new ContextMenuItem { Content = "Lock Annotation" }));
e.MenuItems.Add(new ContextMenuItem { Content = "New Menu Item" });
}
if (e.Source == "Redaction")
@@ -72,7 +73,7 @@ You can enhance the existing default context menu by adding new menu items to it
{% endhighlight %}
{% endtabs %}
-
+
### Remove the context menu item.
You can remove a menu item from the context menu based on the source type by identifying and matching the item's content. This helps you customize the menu to display only the necessary options.
@@ -83,10 +84,10 @@ You can remove a menu item from the context menu based on the source type by ide
if (e.Source == "Annotation")
{
var itemToRemove = e.MenuItems.FirstOrDefault(item => item.Content == "Delete");
- if (itemToRemove != null)
- {
- e.MenuItems.Remove(itemToRemove);
- }
+ if (itemToRemove != null)
+ {
+ e.MenuItems.Remove(itemToRemove);
+ }
}
if (e.Source == "Redaction")
{
@@ -117,9 +118,10 @@ You can remove a menu item from the context menu based on the source type by ide
{% endhighlight %}
{% endtabs %}
-
-### Hide the context menu item.
-You can hide the context menu by setting the `Handled` property to `true` in the `ContextMenuOpening` event.This prevents the menu from being displayed,giving you control over whether the context menu should appear for source types.This helps you manage and customize the behavior of the context menu based on your application's requirements.
+
+
+### Hide the context menu.
+You can hide the context menu by setting the `Handled` property to `true` in the `ContextMenuOpening` event. This prevents the menu from being displayed, giving you control over whether the context menu should appear for source types. This helps you manage and customize the behavior of the context menu based on your application's requirements.
{% tabs %}
{% highlight c# %}
private void PdfViewer_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
@@ -144,8 +146,8 @@ You can hide the context menu by setting the `Handled` property to `true` in the
{% endhighlight %}
{% endtabs %}
-## How to customized the clicked event for context menu item.
-You can customized the context menu clicked event operations in the PDF Viewer control by setting the value of `Handled` to `true` in the `ContextMenuItemClickedEventArgs` parameter within the `ContextMenuItemClickedEvent` event.This allows you to control the behavior of the context menu and prevent any actions from being executed.
+## How to customize the clicked event for context menu item.
+You can customize the context menu clicked event operations in the PDF Viewer control by setting the value of `Handled` to `true` in the `ContextMenuItemClickedEventArgs` parameter within the `ContextMenuItemClickedEvent` event. This allows you to control the behavior of the context menu and prevent any actions from being executed.
Please refer to the following example for more details.
{% tabs %}
@@ -162,7 +164,7 @@ private void PdfViewer_ContextMenuItemClickedEvent(object sender, ContextMenuIte
{% endhighlight %}
{% endtabs %}
-You can also retrieve the details of the clicked context menu item, including its content and the source type,using the `ContextMenuItemClickedEventArgs` in the `ContextMenuItemClickedEvent` event.
+You can also retrieve the details of the clicked context menu item, including its content and the source type, using the `ContextMenuItemClickedEventArgs` in the `ContextMenuItemClickedEvent` event.
Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
@@ -173,4 +175,4 @@ private void PdfViewer_ContextMenuItemClickedEvent(object sender, ContextMenuIte
}
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Enabling-and-Disabling-Notification-bar.md b/Document-Processing/PDF/PDF-Viewer/wpf/Enabling-and-Disabling-Notification-bar.md
index 57b0eb63de..bac9294cd2 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Enabling-and-Disabling-Notification-bar.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Enabling-and-Disabling-Notification-bar.md
@@ -9,30 +9,34 @@ documentation: ug
# Enable and Disable Notification bar in WPF Pdf Viewer
-Notification bar is a part of the PDF Viewer that is used to display when an unexpected error occurs in the PDF Viewer control. You can suppress the display of the Notification bar by setting the [EnableNotificationBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_EnableNotificationBar) property to false. The following code example illustrate the same.
+Notification bar is a part of the PDF Viewer that displays a notification when an unexpected error occurs in the PDF Viewer control. You can suppress the display of the Notification bar by setting the [EnableNotificationBar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_EnableNotificationBar) property to `false` (default value is `true`). The following code example illustrates the same.
{% tabs %}
{% highlight C# %}
+using Syncfusion.Windows.PdfViewer;
+
//Initialize PDF Viewer.
PdfViewerControl pdfViewer1 = new PdfViewerControl();
//Load the PDF.
pdfViewer1.Load("Sample.pdf");
-// Hiding the scrollbar of the PDF Viewer
-pdfviewer1.EnableNotificationBar= false;
+// Hiding the notification bar of the PDF Viewer
+pdfViewer1.EnableNotificationBar = false;
{% endhighlight %}
{% highlight vbnet %}
+Imports Syncfusion.Windows.PdfViewer
+
'Initialize PDF Viewer.
Private pdfViewer1 As New PdfViewerControl()
'Load the PDF.
pdfViewer1.Load("Sample.pdf")
-' Hiding the scrollbar of the PDF Viewer
-pdfviewer1.EnableNotificationBar= False
+' Hiding the notification bar of the PDF Viewer
+pdfViewer1.EnableNotificationBar = False
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Exporting-PDF.md b/Document-Processing/PDF/PDF-Viewer/wpf/Exporting-PDF.md
index d749a1e96c..7553881503 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Exporting-PDF.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Exporting-PDF.md
@@ -30,14 +30,14 @@ BitmapSource image = pdfViewer.ExportAsImage(0);
string output = @"..\..\Output\Image";
if (image != null)
{
- //Initialize the new Jpeg bitmap encoder
- BitmapEncoder encoder = new JpegBitmapEncoder();
- //Create the bitmap frame using the bitmap source and add it to the encoder
- encoder.Frames.Add(BitmapFrame.Create(image));
- //Create the file stream for the output in the desired image format
- FileStream stream = new FileStream(output + ".Jpeg", FileMode.Create);
- //Save the stream, so that the image will be generated in the output location
- encoder.Save(stream);
+ //Initialize the new Jpeg bitmap encoder
+ BitmapEncoder encoder = new JpegBitmapEncoder();
+ //Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(image));
+ //Create the file stream for the output in the desired image format
+ FileStream stream = new FileStream(output + ".Jpeg", FileMode.Create);
+ //Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream);
}
//Dispose the document
loadedDocument.Dispose();
@@ -58,14 +58,14 @@ Dim image As BitmapSource = pdfViewer.ExportAsImage(0)
'Set up the output path
Dim output As String = "..\..\Output\Image"
If image IsNot Nothing Then
- 'Initialize the new Jpeg bitmap encoder
- Dim encoder As BitmapEncoder = New JpegBitmapEncoder()
- 'Create the bitmap frame using the bitmap source and add it to the encoder.
- encoder.Frames.Add(BitmapFrame.Create(image))
- 'Create the file stream for the output in the desired image format
- Dim stream As FileStream = New FileStream(output & ".Jpeg", FileMode.Create)
- 'Save the stream, so that the image will be generated in the output location
- encoder.Save(stream)
+ 'Initialize the new Jpeg bitmap encoder
+ Dim encoder As BitmapEncoder = New JpegBitmapEncoder()
+ 'Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(image))
+ 'Create the file stream for the output in the desired image format
+ Dim stream As FileStream = New FileStream(output & ".Jpeg", FileMode.Create)
+ 'Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream)
End If
'Dispose the document
loadedDocument.Dispose()
@@ -94,17 +94,17 @@ BitmapSource[] image = pdfViewer.ExportAsImage(0, loadedDocument.Pages.Count - 1
string output = @"..\..\Output\Image";
if (image != null)
{
- for (int i = 0; i < image.Length; i++)
- {
- //Initialize the new Jpeg bitmap encoder
- BitmapEncoder encoder = new JpegBitmapEncoder();
- //Create the bitmap frame using the bitmap source and add it to the encoder
- encoder.Frames.Add(BitmapFrame.Create(image[i]));
- //Create the file stream for the output in the desired image format
- FileStream stream = new FileStream(output + i.ToString() + ".Jpeg", FileMode.Create);
- //Save the stream, so that the image will be generated in the output location
- encoder.Save(stream);
- }
+ for (int i = 0; i < image.Length; i++)
+ {
+ //Initialize the new Jpeg bitmap encoder
+ BitmapEncoder encoder = new JpegBitmapEncoder();
+ //Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(image[i]));
+ //Create the file stream for the output in the desired image format
+ FileStream stream = new FileStream(output + i.ToString() + ".Jpeg", FileMode.Create);
+ //Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream);
+ }
}
//Dispose the document
loadedDocument.Dispose();
@@ -124,16 +124,16 @@ Dim image As BitmapSource() = pdfViewer.ExportAsImage(0, loadedDocument.Pages.Co
'Set up the output path
Dim output As String = "..\..\Output\Image"
If image IsNot Nothing Then
- For i As Integer = 0 To image.Length - 1
- 'Initialize the new Jpeg bitmap encoder
- Dim encoder As BitmapEncoder = New JpegBitmapEncoder()
- 'Create the bitmap frame using the bitmap source and add it to the encoder
- encoder.Frames.Add(BitmapFrame.Create(image(i)))
- 'Create the file stream for the output in the desired image format
- Dim stream As FileStream = New FileStream(output & i.ToString() & ".Jpeg", FileMode.Create)
- 'Save the stream, so that the image will be generated in the output location
- encoder.Save(stream)
- Next
+ For i As Integer = 0 To image.Length - 1
+ 'Initialize the new Jpeg bitmap encoder
+ Dim encoder As BitmapEncoder = New JpegBitmapEncoder()
+ 'Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(image(i)))
+ 'Create the file stream for the output in the desired image format
+ Dim stream As FileStream = New FileStream(output & i.ToString() & ".Jpeg", FileMode.Create)
+ 'Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream)
+ Next
End If
'Dispose the document
loadedDocument.Dispose()
@@ -144,25 +144,25 @@ loadedDocument = Nothing
## Exporting with a custom image size
-You can export PDF pages as images with custom width and height by passing the required size as a parameter of the [ExportAsImage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportAsImage_System_Int32_System_Drawing_SizeF_System_Boolean_) method. Refer to the following code to export the pages of PDF into JPEG images. Refer to the following code to export the page at the index of 0 into JPEG image with the width and the height of 1836 and 2372 in pixels respectively.
+You can export PDF pages as images with custom width and height by passing the required size as a parameter of the [ExportAsImage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportAsImage_System_Int32_System_Drawing_SizeF_System_Boolean_) method. Refer to the following code to export the page at the index of 0 into JPEG image with the width and the height of 1836 and 2372 in pixels respectively.
{% tabs %}
{% highlight C# %}
//Export the particular PDF page as image at the page index of 0
-BitmapSource image = pdfViewerControl.ExportAsImage(0, new SizeF(1836, 2372), false);
+BitmapSource image = pdfViewer.ExportAsImage(0, new SizeF(1836, 2372), false);
//Set up the output path
string output = @"..\..\Output\Image";
if (image != null)
{
- //Initialize the new Jpeg bitmap encoder
- BitmapEncoder encoder = new JpegBitmapEncoder();
- //Create the bitmap frame using the bitmap source and add it to the encoder
- encoder.Frames.Add(BitmapFrame.Create(image));
- //Create the file stream for the output in the desired image format
- FileStream stream = new FileStream(output + ".Jpeg", FileMode.Create);
- //Save the stream, so that the image will be generated in the output location
- encoder.Save(stream);
+ //Initialize the new Jpeg bitmap encoder
+ BitmapEncoder encoder = new JpegBitmapEncoder();
+ //Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(image));
+ //Create the file stream for the output in the desired image format
+ FileStream stream = new FileStream(output + ".Jpeg", FileMode.Create);
+ //Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream);
}
{% endhighlight %}
@@ -182,22 +182,22 @@ int endPageIndex = 3;
float dpiX=200;
float dpiY=200;
-BitmapSource[] images = pdfViewerControl.ExportAsImage(startPageIndex, endPageIndex, dpiX, dpiY);
+BitmapSource[] images = pdfViewer.ExportAsImage(startPageIndex, endPageIndex, dpiX, dpiY);
//Set up the output path
string output = @"..\..\Output\Image";
if (images != null)
{
- for (int i = 0; i < images.Length; i++)
- {
- //Initialize the new Jpeg bitmap encoder
- BitmapEncoder encoder = new JpegBitmapEncoder();
- //Create the bitmap frame using the bitmap source and add it to the encoder
- encoder.Frames.Add(BitmapFrame.Create(images[i]));
- //Create the file stream for the output in the desired image format
- FileStream stream = new FileStream(output + i.ToString() + ".Jpeg", FileMode.Create);
- //Save the stream, so that the image will be generated in the output location
- encoder.Save(stream);
- }
+ for (int i = 0; i < images.Length; i++)
+ {
+ //Initialize the new Jpeg bitmap encoder
+ BitmapEncoder encoder = new JpegBitmapEncoder();
+ //Create the bitmap frame using the bitmap source and add it to the encoder
+ encoder.Frames.Add(BitmapFrame.Create(images[i]));
+ //Create the file stream for the output in the desired image format
+ FileStream stream = new FileStream(output + i.ToString() + ".Jpeg", FileMode.Create);
+ //Save the stream, so that the image will be generated in the output location
+ encoder.Save(stream);
+ }
}
{% endhighlight %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Getting-Started.md b/Document-Processing/PDF/PDF-Viewer/wpf/Getting-Started.md
index 17371cbf03..a6de17e50e 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Getting-Started.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Getting-Started.md
@@ -1,17 +1,17 @@
---
layout: post
-title: Getting Started with WPF Pdf Viewer control | Syncfusion®
-description: Learn here about getting started with Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+title: Getting Started with WPF PDF Viewer control | Syncfusion®
+description: Learn here about getting started with Syncfusion® Essential Studio® WPF PDF Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---
-# Getting Started with WPF Pdf Viewer
+# Getting Started with WPF PDF Viewer
This section explains how to create an application that displays a PDF file using the [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer).
-To get started quickly with WPF PDF Viewer, you can check on this video:
+To get started quickly with WPF PDF Viewer, you can check out this video:
@@ -24,15 +24,15 @@ You can create a **WPF Application** using Visual Studio via [Microsoft Template
## Assemblies Deployment
-To add a WPF pdfviewer component to your application by installing it via NuGet packages(Recommended) or by manually adding the required assemblies to the project.
+To add a WPF PDF Viewer component to your application by installing it via NuGet packages (Recommended) or by manually adding the required assemblies to the project.
{% tabcontents %}
{% tabcontent NuGet Package %}
-### Install Syncfusion® WPF PdfViewer NuGet packages
+### Install Syncfusion® WPF PDF Viewer NuGet packages
-To add **WPF pdfViewer** component in the application, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install:
+To add **WPF PDF Viewer** component in the application, open the NuGet package manager in Visual Studio (*Tools → NuGet Package Manager → Manage NuGet Packages for Solution*), search and install:
• [Syncfusion.PdfViewer.WPF](https://www.nuget.org/packages/Syncfusion.PdfViewer.WPF)
@@ -47,9 +47,9 @@ Rather than referencing the assemblies, you can utilize the [PdfViewer NuGet](ht
{% tabcontent Assemblies (.dll) %}
-### Add Syncfusion® WPF pdfviewer Assemblies
+### Add Syncfusion® WPF PDF Viewer Assemblies
-Below table describes, list of assemblies required to be added in project when the WPF pdfviewer control is used in your application.
+The following table lists the assemblies required to be added in the project when the WPF PDF Viewer control is used in your application.
@@ -80,56 +80,59 @@ This component contains various UI controls (ColorPickerPalette and Numeric UpDo
-Below are the additional DLLs required for applying themes and skinning to the WPF PdfViewer control:
+Below are the additional DLLs required for applying themes and skinning to the WPF PDF Viewer control:
Assembly
Description
Syncfusion.Themes.Windows11Light.WPF.dll
Contains the Windows 11 Light theme style for Syncfusion WPF controls.
Syncfusion.SfSkinManager.WPF.dll
Contains the SfSkinManager which helps to apply different themes to Syncfusion WPF controls.
-N> You need to add these references to your project to use the skinning and theming capabilities of the PdfViewer.
+N> You need to add these references to your project to use the skinning and theming capabilities of the PDF Viewer.
{% endtabcontent %}
{% endtabcontents %}
-N>* Starting with version 23.1.x, Syncfusion PdfToImageConverter is necessary for PdfViewer applications.
-N>* Starting with v16.2.0.x, if you reference Syncfusion®; assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to [this link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your WPF application to use our components.
+N>* Starting with version 23.1.x, Syncfusion PdfToImageConverter is necessary for PDF Viewer applications.
+N>* Starting with v16.2.0.x, if you reference Syncfusion® assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to [this link](https://help.syncfusion.com/common/essential-studio/licensing/overview) to know about registering Syncfusion® license key in your WPF application to use our components.
-## Add WPF PdfViewer component
-WPF PdfViewer control can be added to an application either through the designer (XAML) or programmatically using code.
+## Add WPF PDF Viewer component
+WPF PDF Viewer control can be added to an application either through the designer (XAML) or programmatically using code.
{% tabcontents %}
{% tabcontent Via Designer %}
1. Open the Visual Studio toolbox.
-2. Navigate to Syncfusion®; WPF Toolbox tab and drag the `PdfViewerControl` toolbox item to the Designer window, it automatically adds the required references to the current application.
+2. Navigate to Syncfusion® WPF Toolbox tab and drag the `PdfViewerControl` toolbox item to the Designer window. The required references are automatically added to the current application.

- PDF viewer control in toolbox
- {:.caption}
-
-3. PdfViewer can be added to the application by dragging `PdfViewerControl` to the Designer area.
+ PDF Viewer control in toolbox
+ {:.caption}
+
+3. Use the `PdfViewerControl` in XAML by including the Syncfusion namespace.
{% tabs %}
{% highlight xaml tabtitle="MainWindow.xaml" %}
-
-
+
{% endhighlight %}
{% endtabs %}
-N> Declare a name for the PdfViewer component as shown above for reference.
+N> Declare a name for the PDF Viewer component as shown above for reference.
-4. Add the theme and the [SfSkinManager](https://help.syncfusion.com/cr/wpf/Syncfusion.SfSkinManager.html) namespace to style the control correctly. Then, include the SfSkinManager namespace in the XAML code and apply the desired theme.
+4. Add the [SfSkinManager](https://help.syncfusion.com/cr/wpf/Syncfusion.SfSkinManager.html) namespace to style the control correctly, and apply the desired theme.
{% tabs %}
{% highlight xaml tabtitle="MainWindow.xaml" %}
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:syncfusionskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
+ syncfusionskin:SfSkinManager.Theme="{syncfusionskin:SkinManagerExtension ThemeName=Windows11Light}">
{% endhighlight %}
@@ -138,87 +141,89 @@ N> Declare a name for the PdfViewer component as shown above for reference.
{% endtabcontent %}
{% tabcontent Via Coding %}
-To add control manually from code, follow these steps,
+To add the control manually from code, follow these steps:
1. Add the required assemblies as a reference to the project.
2. Add the following Syncfusion®; namespace in MainWindow.xaml.cs.
-{% tabs %}
-{% highlight c# tabtitle="C#" %}
-using Syncfusion.Windows.PdfViewer;
-{% endhighlight %}
-{% endtabs %}
+ {% tabs %}
+ {% highlight c# tabtitle="C#" %}
+ using Syncfusion.Windows.PdfViewer;
+ {% endhighlight %}
+ {% endtabs %}
3. Create a PdfViewerControl instance and add it to the main window.
-{% tabs %}
-{% highlight c# tabtitle="C#" %}
-using Syncfusion.Windows.PdfViewer;
-using System.Windows;
-
-namespace PdfViewerDemo
-{
- ///
- /// Interaction logic for Window1.xaml
- ///
- public partial class MainWindow : Window
- {
- # region Constructor
- public MainWindow()
- {
- InitializeComponent();
- PdfViewerControl pdfViewer = new PdfViewerControl();
- HomeGrid.Children.Add(pdfViewer);
- }
- #endregion
- }
-}
-{% endhighlight %}
-{% endtabs %}
-
-4. The following example code demonstrate how to apply the FluentDark theme to PDF Viewer control in MainWindow.xaml.cs .
+ {% tabs %}
+ {% highlight c# tabtitle="C#" %}
+ using Syncfusion.Windows.PdfViewer;
+ using System.Windows;
+
+ namespace PdfViewerDemo
+ {
+ ///
+ /// Interaction logic for Window1.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ # region Constructor
+ public MainWindow()
+ {
+ InitializeComponent();
+ PdfViewerControl pdfViewer = new PdfViewerControl();
+ HomeGrid.Children.Add(pdfViewer);
+ }
+ #endregion
+ }
+ }
+ {% endhighlight %}
+ {% endtabs %}
+
+4. The following example code demonstrate how to apply the FluentDark theme to PDF Viewer control in MainWindow.xaml.cs using SfSkinManager.
-{% tabs %}
-{% highlight c# tabtitle="C#" %}
-
-public MainWindow()
-{
- InitializeComponent();
- //Initialize PDF Viewer.
- PdfViewerControl pdfViewer1 = new PdfViewerControl();
- HomeGrid.Children.Add(pdfViewer);
-
- //Apply the theme to PDFViewer.
- SfSkinManager.ApplyThemeAsDefaultStyle = true;
- SfSkinManager.SetTheme(pdfViewer, new Theme() { ThemeName = "FluentDark" });
- pdfViewer.Load(@"../../PDF_Succinctly.pdf");
-}
-
-{% endhighlight %}
-
-{% highlight vbnet tabtitle="VB.NET" %}
-
-Public Sub New()
- InitializeComponent()
- 'Initialize PDF Viewer.
- Dim pdfViewer As PdfViewerControl = New PdfViewerControl()
- HomeGrid.Children.Add(pdfViewer)
-
- 'Apply the theme to PDFViewer.
- SfSkinManager.ApplyThemeAsDefaultStyle = True
- SfSkinManager.SetTheme(pdfViewer, New Theme() With {
- .ThemeName = "FluentDark"
- })
- pdfViewer.Load("../../PDF_Succinctly.pdf")
-End Sub
-
-{% endhighlight %}
-{% endtabs %}
-
-
-{% endtabcontent %}
-
-{% endtabcontents %}
+ {% tabs %}
+ {% highlight c# tabtitle="C#" %}
+
+ using Syncfusion.Windows.PdfViewer;
+ using Syncfusion.SfSkinManager;
+ public MainWindow()
+ {
+ InitializeComponent();
+ //Initialize PDF Viewer.
+ PdfViewerControl pdfViewer = new PdfViewerControl();
+ HomeGrid.Children.Add(pdfViewer);
+
+ //Apply the theme to PDFViewer.
+ SfSkinManager.ApplyThemeAsDefaultStyle = true;
+ SfSkinManager.SetTheme(pdfViewer, new Theme() { ThemeName = "FluentDark" });
+ pdfViewer.Load(@"../../PDF_Succinctly.pdf");
+ }
+
+ {% endhighlight %}
+
+ {% highlight vbnet tabtitle="VB.NET" %}
+
+ Public Sub New()
+ InitializeComponent()
+ 'Initialize PDF Viewer.
+ Dim pdfViewer As PdfViewerControl = New PdfViewerControl()
+ HomeGrid.Children.Add(pdfViewer)
+
+ 'Apply the theme to PDFViewer.
+ SfSkinManager.ApplyThemeAsDefaultStyle = True
+ SfSkinManager.SetTheme(pdfViewer, New Theme() With {
+ .ThemeName = "FluentDark"
+ })
+ pdfViewer.Load("../../PDF_Succinctly.pdf")
+ End Sub
+
+ {% endhighlight %}
+ {% endtabs %}
+
+
+ {% endtabcontent %}
+
+ {% endtabcontents %}
N>[View Sample in GitHub.](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/GettingStarted). Looking for the full WPF PDF Viewer component overview, features, pricing, and documentation? Visit the [WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) page.
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Handwritten-Signature.md b/Document-Processing/PDF/PDF-Viewer/wpf/Handwritten-Signature.md
index 4a5240abff..70971fd4b3 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Handwritten-Signature.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Handwritten-Signature.md
@@ -1,17 +1,17 @@
---
layout: post
-title: Handwritten Signature in WPF Pdf Viewer control | Syncfusion®
-description: Learn about Handwritten Signature support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
+title: Handwritten Signature in WPF PDF Viewer control | Syncfusion®
+description: Learn about Handwritten Signature support in Syncfusion®, WPF PDF Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---
-# Handwritten Signature in WPF Pdf Viewer
+# Handwritten Signature in WPF PDF Viewer
-PDF viewer WPF allows the user to include handwritten signature in the PDF document and provides options to edit or remove the included handwritten signature in the PDF document.
+The WPF PDF Viewer allows users to include handwritten signatures in the PDF document and provides options to edit or remove the included handwritten signature in the PDF document.
-The following code shows how to switch to handwritten signature mode in code behind.
+The following code shows how to switch to handwritten signature mode in code-behind.
{% tabs %}
{% highlight C# %}
@@ -19,8 +19,8 @@ The following code shows how to switch to handwritten signature mode in code beh
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
- pdfviewer.Load(pdf);
- pdfviewer.AnnotationMode = PdfDocumentView.PdfViewerAnnotationMode.HandwrittenSignature;
+ pdfViewer.Load(pdf);
+ pdfViewer.AnnotationMode = PdfDocumentView.PdfViewerAnnotationMode.HandwrittenSignature;
}
{% endhighlight %}
@@ -28,15 +28,15 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
- pdfviewer.AnnotationMode = PdfDocumentView.PdfViewerAnnotationMode.HandwrittenSignature
+ pdfViewer.AnnotationMode = PdfDocumentView.PdfViewerAnnotationMode.HandwrittenSignature
End Sub
{% endhighlight %}
{% endtabs %}
-Moving to `HandwrittenSignature` mode will open the signature pad, requesting the user to draw the signature. Clicking on apply will add the signature in the PDF Document, this can then be resized and moved to appropriate location.
+Moving to `HandwrittenSignature` mode will open the signature pad, requesting the user to draw the signature. Clicking on **Apply** will add the signature in the PDF document, which can then be resized and moved to the appropriate location.

@@ -50,8 +50,8 @@ The opacity of the handwritten signature can be customized at the time of inclus
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
- pdfviewer.Load(pdf);
- pdfviewer.HandwrittenSignatureSettings.Opacity = 0.5F;
+ pdfViewer.Load(pdf);
+ pdfViewer.HandwrittenSignatureSettings.Opacity = 0.5F;
}
{% endhighlight %}
@@ -59,9 +59,9 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
- pdfviewer.HandwrittenSignatureSettings.Opacity = 0.5F
+ pdfViewer.HandwrittenSignatureSettings.Opacity = 0.5F
End Sub
{% endhighlight %}
@@ -77,8 +77,8 @@ The color of the handwritten signature can be customized at the time of inclusio
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
- pdfviewer.Load(pdf);
- pdfviewer.HandwrittenSignatureSettings.Color = Colors.Green;
+ pdfViewer.Load(pdf);
+ pdfViewer.HandwrittenSignatureSettings.Color = Colors.Green;
}
{% endhighlight %}
@@ -86,9 +86,9 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
- pdfviewer.HandwrittenSignatureSettings.Color = Colors.Green
+ pdfViewer.HandwrittenSignatureSettings.Color = Colors.Green
End Sub
{% endhighlight %}
@@ -104,8 +104,8 @@ The included handwritten signature can be flattened in the PDF document when sav
private void Window_Loaded(object sender, RoutedEventArgs e)
{
PdfLoadedDocument pdf = new PdfLoadedDocument("Input.pdf");
- pdfviewer.Load(pdf);
- pdfviewer.HandwrittenSignatureSettings.FlattenSignatureOnSave = true;
+ pdfViewer.Load(pdf);
+ pdfViewer.HandwrittenSignatureSettings.FlattenSignatureOnSave = true;
}
{% endhighlight %}
@@ -113,9 +113,9 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
- pdfviewer.HandwrittenSignatureSettings.FlattenSignatureOnSave = true
+ pdfViewer.HandwrittenSignatureSettings.FlattenSignatureOnSave = true
End Sub
{% endhighlight %}
@@ -125,22 +125,22 @@ N> If the handwritten signature is not flattened, it will be saved as ink annota
## Working with included handwritten signatures
-The PDF viewer allows editing the color and opacity of the Handwritten signature included in the document in the UI.. To perform this, select the included handwritten signature and click right using mouse, over the selected handwritten signature, a pop-up context menu will appear with the following options,
+The PDF viewer allows editing the color and opacity of the handwritten signature included in the document in the UI. To perform this, select the included handwritten signature and right-click using the mouse, over the selected handwritten signature, a pop-up context menu will appear with the following options,
* Properties
* Delete
### Properties
-Selecting properties from the context menu will display the Handwritten Signature Properties window, which would have Appearance tab.
+Selecting properties from the context menu will display the Handwritten Signature Properties window, which has the Appearance tab.
#### Appearance tab
-The color, opacity of the handwritten signature can be edited using Appearance tab of Handwritten Signature Properties window.
+The color and opacity of the handwritten signature can be edited using the Appearance tab of the Handwritten Signature Properties window.
##### Editing color of the signature
-The color of the selected handwritten signature will be displayed in the color row in the appearance tab. Selecting the Color would displays the color palette, choosing a color from the color palette and clicking OK will apply the color to the handwritten signature.
+The color of the selected handwritten signature will be displayed in the color row in the appearance tab. Selecting the Color displays the color palette, choosing a color from the color palette and clicking OK will apply the color to the handwritten signature.
The following image illustrates how to change the color of the handwritten signature.
@@ -148,30 +148,30 @@ The following image illustrates how to change the color of the handwritten signa
##### Editing opacity of the signature
-The slider displayed in the Appearance tab allows modifying opacity of the selected handwritten signature. You can also modify the opacity of the selected handwritten signature by giving numeric value in the opacity text box.
+The slider displayed in the Appearance tab allows modifying the opacity of the selected handwritten signature. You can also modify the opacity of the selected handwritten signature by giving numeric value in the opacity text box.

### Deleting a signature
-Selecting delete option from the context menu which is displayed when clicking right on the selected signature would delete the respective signature from the PDF document.
+Selecting the delete option from the context menu which is displayed when right-clicking on the selected signature would delete the respective signature from the PDF document.

## Track the changes in a handwritten signature
-You can track the changes occurred in a handwritten signature such as add, select, deselect, move, resize, and remove. The `HandwrittenSignatureChanged` event indicates that a signature is changed in the current document and the `Action` property of the `HandwrittenSignatureChangedEventArgs` provides you the type of changes made in the signature. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
+You can track the changes that occur in a handwritten signature such as add, select, deselect, move, resize, and remove. The `HandwrittenSignatureChanged` event indicates that a signature is changed in the current document and the `Action` property of the `HandwrittenSignatureChangedEventArgs` provides the type of change made in the signature. The following code shows how to subscribe to the event on the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight C# %}
PdfViewerControl pdfViewer = new PdfViewerControl();
-pdfViewer.Load("Barcode.pdf");
+pdfViewer.Load("Input.pdf");
pdfViewer.HandwrittenSignatureChanged += PdfViewer_HandwrittenSignatureChanged;
private void PdfViewer_HandwrittenSignatureChanged(object sender, HandwrittenSignatureChangedEventArgs e)
{
- //Insert your code that does something
+ //Insert your code that does something
}
{% endhighlight %}
@@ -179,11 +179,11 @@ private void PdfViewer_HandwrittenSignatureChanged(object sender, HandwrittenSig
{% highlight vbnet %}
Dim pdfViewer As PdfViewerControl = New PdfViewerControl()
-pdfViewer.Load("Barcode.pdf")
+pdfViewer.Load("Input.pdf")
AddHandler pdfViewer.HandwrittenSignatureChanged, AddressOf PdfViewer_HandwrittenSignatureChanged
Private Sub PdfViewer_HandwrittenSignatureChanged(ByVal sender As Object, ByVal e As HandwrittenSignatureChangedEventArgs)
-'Insert your code that does something
+ 'Insert your code that does something
End Sub
{% endhighlight %}
@@ -263,7 +263,6 @@ Private Sub PdfViewer_HandwrittenSignatureChanged(ByVal sender As Object, ByVal
End Sub
{% endhighlight %}
-
{% endtabs %}
### Track the details of the selected handwritten signature
@@ -306,21 +305,21 @@ End Sub
## Add handwritten signature from code
-PDF Viewer allows you to add a signature anywhere in the pages of a PDF document from code behind.
+PDF Viewer allows you to add a signature anywhere in the pages of a PDF document from code-behind.
### Add a handwritten signature in a single page
-You can add signature in a particular page as `System.Windows.Shapes.Path` by using the `AddHandwrittenSignature` with the page number and the bounds as parameters. The following code explains how to add a handwritten signature at the first page of the PDF document.
+You can add a signature in a particular page as `System.Windows.Shapes.Path` by using the `AddHandwrittenSignature` with the page number and the bounds as parameters. The following code explains how to add a handwritten signature at the first page of the PDF document.
{% tabs %}
{% highlight C# %}
private void button_Click(object sender, RoutedEventArgs e)
{
- System.Windows.Shapes.Path signature = new System.Windows.Shapes.Path();
- //Note: Set your signature appearance as Data for the path here.
- //Add signature in the first page of the PDF document at the location: X= 450, Y=750 and with the size: Width=100, Height=100.
- pdfViewer.AddHandwrittenSignature(signature, 1, new RectangleF(450, 750, 100, 100));
+ System.Windows.Shapes.Path signature = new System.Windows.Shapes.Path();
+ //Note: Set your signature appearance as Data for the path here.
+ //Add signature in the first page of the PDF document at the location: X= 450, Y=750 and with the size: Width=100, Height=100.
+ pdfViewer.AddHandwrittenSignature(signature, 1, new RectangleF(450, 750, 100, 100));
}
{% endhighlight %}
@@ -345,14 +344,14 @@ You can also add a signature in multiple pages of the PDF document at multiple p
private void button_Click(object sender, RoutedEventArgs e)
{
- System.Windows.Shapes.Path signature = new System.Windows.Shapes.Path();
- //Note: Set your signature appearance using `Data` property of the path here.
- Dictionary> bounds = new Dictionary>();
- //Add signature bounds for the first page as: X= 450, Y=750, Width=100, Height=100.
- bounds.Add(1, new List() { new RectangleF(450, 750, 100, 100) });
- //Add signature bounds for the second page as: X= 350, Y=550, Width=200, Height=200
- bounds.Add(2, new List() { new RectangleF(350, 550, 200, 200) });
- pdfViewer.AddHandwrittenSignature(signature, bounds);
+ System.Windows.Shapes.Path signature = new System.Windows.Shapes.Path();
+ //Note: Set your signature appearance using `Data` property of the path here.
+ Dictionary> bounds = new Dictionary>();
+ //Add signature bounds for the first page as: X= 450, Y=750, Width=100, Height=100.
+ bounds.Add(1, new List() { new RectangleF(450, 750, 100, 100) });
+ //Add signature bounds for the second page as: X= 350, Y=550, Width=200, Height=200.
+ bounds.Add(2, new List() { new RectangleF(350, 550, 200, 200) });
+ pdfViewer.AddHandwrittenSignature(signature, bounds);
}
{% endhighlight %}
@@ -360,13 +359,13 @@ private void button_Click(object sender, RoutedEventArgs e)
Private Sub button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim signature As System.Windows.Shapes.Path = New System.Windows.Shapes.Path()
- 'Note: Set your signature appearance using `Data` property of the path here.
+ 'Note: Set your signature appearance using `Data` property of the path here.
Dim bounds As Dictionary(Of Integer, List(Of RectangleF)) = New Dictionary(Of Integer, List(Of RectangleF))()
'Add signature bounds for the first page as: X= 450, Y=750, Width=100, Height=100.
- bounds.Add(1, New List(Of RectangleF)() From {
+ bounds.Add(1, New List(Of RectangleF)() From {
New RectangleF(450, 750, 100, 100)
})
- 'Add signature bounds for the second page as: X= 350, Y=550, Width=200, Height=200.
+ 'Add signature bounds for the second page as: X= 350, Y=550, Width=200, Height=200.
bounds.Add(2, New List(Of RectangleF)() From {
New RectangleF(350, 550, 200, 200)
})
@@ -378,11 +377,11 @@ End Sub
## Keyboard shortcuts
-The below keyboard shortcuts are available to customize the handwritten signature in the PDF document.
+The following keyboard shortcuts are available to customize the handwritten signature in the PDF document.
* Delete key – Deletes the selected signature from the PDF document.
* Ctrl + Z – Performs undo functionality for recently performed operations.
* Ctrl + Y – Performs redo functionality for recently performed operations.
-N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
\ No newline at end of file
+N> You can refer to the [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its feature representations. You can also explore the [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Change-the-new-toolbar-design-to-old-toolbar-design.md b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Change-the-new-toolbar-design-to-old-toolbar-design.md
index 33177be711..d3db1e4506 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Change-the-new-toolbar-design-to-old-toolbar-design.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Change-the-new-toolbar-design-to-old-toolbar-design.md
@@ -9,11 +9,11 @@ documentation: ug
# Change the current toolbar design to the old toolbar design
-From 21.1.0.X onwards, PDFViewer toolbar design was changed for better user interface and visual. The current toolbar design is shown as follows.
+From 21.1.0.X onwards, PDFViewer toolbar design was changed for a better user interface and visual appearance. The current toolbar design is shown as follows.

-In order to change the new toolbar design back to the old toolbar design, set the customized style “SyncfusionPdfViewerCustomControlStyle”(refer to this style definition in the sample download link) to the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) as follows.
+In order to change the new toolbar design back to the old toolbar design, set the customized style "SyncfusionPdfViewerCustomControlStyle"(refer to this style definition in the sample download link) to the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) as follows.
{% tabs %}
{% highlight c# %}
@@ -25,12 +25,12 @@ In order to change the new toolbar design back to the old toolbar design, set th
{% endhighlight %}
{% endtabs %}
-The customized style of the PdfViewer toolbar re-arranges the toolbar icons as of the old design. However, it needs three new buttons to be added in the custom style to perform fit page, fit Width, and Marquee Zoom operations. The above mentioned three buttons are inside the zoom level combo box of the new toolbar design as follows.
+The customized style of the PdfViewer toolbar re-arranges the toolbar icons as of the old design. However, it needs three new buttons to be added in the custom style to perform fit page, fit width, and marquee zoom operations. The above-mentioned three buttons are inside the zoom level combo box of the new toolbar design as follows.

-So, the events for the above mentioned three buttons needs to trigger to achieve their functionalities as same in the old toolbar design. After applying the “SyncfusionPdfViewerCustomControlStyle” style to the PdfViewerControl, it will look as follows.
+So, the events for the above-mentioned three buttons need to trigger to achieve their functionalities same as in the old toolbar design. After applying the "SyncfusionPdfViewerCustomControlStyle" style to the PdfViewerControl, it will look as follows.

-N> The sample for changing the current toolbar deign to the old toolbar design is present in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Toolbar/ChangeCurrentToolbarToOldToolbar).
\ No newline at end of file
+N> The sample for changing the current toolbar design to the old toolbar design is present in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Toolbar/ChangeCurrentToolbarToOldToolbar).
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Changing-the-Current-User.md b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Changing-the-Current-User.md
index d36e594727..228de5bb27 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Changing-the-Current-User.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Changing-the-Current-User.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Change the Current user in PdfViewer | Syncfusion
-description: Learn about how to Change the CurrentUser in Syncfusion®; WPF Pdf Viewer control using CurrentUser property.
+title: Change the CurrentUser in PdfViewer | Syncfusion
+description: Learn how to change the CurrentUser in Syncfusion® WPF Pdf Viewer control using CurrentUser property.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -14,12 +14,14 @@ The PDF Viewer allows you to change the CurrentUser. If the CurrentUser property
{% tabs %}
{% highlight C# %}
+using Syncfusion.Windows.PdfViewer;
+
//Initialize PDF Viewer.
PdfViewerControl pdfViewer = new PdfViewerControl();
//Load the PDF.
pdfViewer.Load("Sample.pdf");
-//Changing the CurrentUser of document
+//Changing the CurrentUser of document.
pdfViewer.CurrentUser = "set the name here";
{% endhighlight %}
@@ -27,13 +29,15 @@ pdfViewer.CurrentUser = "set the name here";
{% highlight vbnet %}
+Imports Syncfusion.Windows.PdfViewer
+
'Initialize PDF Viewer.
Private pdfViewer As New PdfViewerControl()
'Load the PDF.
pdfViewer.Load("Sample.pdf")
-'Changing the CurrentUser of document
+'Changing the CurrentUser of document.
pdfViewer.CurrentUser = "set the name here";
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Disable-toolbar-items.md b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Disable-toolbar-items.md
index eeffdfc4bc..758b384d94 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Disable-toolbar-items.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/How-To/Disable-toolbar-items.md
@@ -13,7 +13,7 @@ To remove the default toolbar completely, use the [PdfDocumentView](https://help
However, an individual toolbar item can also be removed from the default toolbar of the PDF Viewer using the toolbar template.
-N> When disabling the toolbar items using the toolbar template, the toolbar template should be accessed either in the **PdfViewerControl's Loaded event** or **Windows loaded event** as the toolbar items will be initialized when the PdfViewer is loaded. Accessing the toolbar items using its template before the PdfViewer is loaded will result in a null reference exception
+N> When disabling the toolbar items using the toolbar template, the toolbar template should be accessed either in the **PdfViewerControl's Loaded event** or **Windows loaded event** as the toolbar items will be initialized when the PdfViewer is loaded. Accessing the toolbar items using its template before the PdfViewer is loaded will result in a null reference exception.
The following code sample explains disabling the text search tool from the default toolbar.
@@ -33,7 +33,7 @@ private void pdfViewer_Loaded(object sender, RoutedEventArgs e)
{
//Get the instance of the toolbar using its template name.
DocumentToolbar toolbar = pdfViewer.Template.FindName("PART_Toolbar", pdfViewer) as DocumentToolbar;
- //Get the instance of the open file button using its template name.
+ //Get the instance of the text search button using its template name.
Button textSearchButton = (Button)toolbar.Template.FindName("PART_ButtonTextSearch", toolbar);
//Set the visibility of the button to collapsed.
textSearchButton.Visibility = System.Windows.Visibility.Collapsed;
@@ -42,7 +42,7 @@ private void pdfViewer_Loaded(object sender, RoutedEventArgs e)
{% endhighlight %}
{% endtabs %}
-N> Apply the changes of hiding toolbar items, only after when the application window is loaded.
+N> Apply the changes for hiding toolbar items only after the application window is loaded.
N> The sample project for disabling toolbar item is available in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Toolbar/HideToolbarItems).
Similarly, other toolbar items also can be disabled. The following table lists the template names of the rest of the toolbar items along with their respective types in the order they appear in the toolbar.
@@ -193,7 +193,7 @@ Similarly, other toolbar items also can be disabled. The following table lists t
N> From the v18.4.0.x onwards, the file menu items such as Open, Save, Save As, and Print are not directly present in the toolbar and they are present in the context menu of the File tools toggle button.
N> From the v21.1.0.x onwards, the PDFViewer toolbar design is changed for a better user interface and visual.
-Due to the changes in the toolbar design, there were some changes for a few tool templates. They are listed as follows.
+Due to the toolbar design changes, a few tool templates have been modified. They are listed as follows.
## Before v21.1.0.x (Old Toolbar)
@@ -384,4 +384,4 @@ Similarly, other file menu items can be disabled. The following table lists the
-N> The present UI design is subject to change, based on the inclusion of new features, enhancements, and user convenience.
\ No newline at end of file
+N> The current UI design is subject to change based on the inclusion of new features, enhancements, and user convenience.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Interaction-Modes.md b/Document-Processing/PDF/PDF-Viewer/wpf/Interaction-Modes.md
index 91953764b5..61f851ee88 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Interaction-Modes.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Interaction-Modes.md
@@ -1,7 +1,7 @@
---
layout: post
title: Interaction Modes in WPF Pdf Viewer control | Syncfusion®
-description: Learn about Interaction Modes support in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+description: Learn about Interaction Modes support in Syncfusion®, Essential Studio® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: UG
@@ -9,9 +9,9 @@ documentation: UG
# Interaction Modes in WPF Pdf Viewer
-The PDF Viewer supports following cursor modes for easy interaction with the PDF documents:
+The PDF Viewer supports the following cursor modes for easy interaction with the PDF documents:
-* Selection mode
+* Selection mode
* Panning mode
* Marquee zoom mode
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Localization.md b/Document-Processing/PDF/PDF-Viewer/wpf/Localization.md
index 6dc26e5b28..fb2a978dd3 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Localization.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Localization.md
@@ -9,16 +9,16 @@ documentation: ug
# Localization in WPF Pdf Viewer
-Localization is the process of configuring the application to a specific language. [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) provides support to localize all the static text used for tooltip and context menu contents. Localization can be done by adding resource file (.resx) in the application.
-We are using `en-US` culture-based resource file as default in PDF Viewer. This can be downloaded from this [GitHub](https://github.com/syncfusion/wpf-controls-localization-resx-files/tree/master/Syncfusion.PdfViewer.WPF) location.
+Localization is the process of configuring the application to a specific language. [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) provides support to localize all the static text used for tooltip and context menu contents. Localization can be done by adding a resource file (.resx) in the application.
+We use the `en-US` culture-based resource file as the default in PDF Viewer. This can be downloaded from this [GitHub](https://github.com/syncfusion/wpf-controls-localization-resx-files/tree/master/Syncfusion.PdfViewer.WPF) location.
## Adding Resource file
-* Create a folder name as `Resources` in your application.
-* Add default English (“en-US”) [Resx](https://github.com/syncfusion/wpf-controls-localization-resx-files/blob/master/Syncfusion.PdfViewer.WPF/Syncfusion.PdfViewer.WPF.resx) (resource) file of `PdfViewerControl` in `Resources` folder named as Syncfusion.PdfViewer.WPF.resx.
-* Create a Resx (resource) files and name it as Syncfusion.PdfViewer.WPF.[Culture name].resx. For example, Syncfusion.PdfViewer.WPF.fr.resx for French culture.
-* Add the resource key such as `OpenDocument` and its corresponding localized value in Syncfusion.PdfViewer.WPF.fr.resx file. Refer the below screenshot for the same.
+* Create a folder named `Resources` in your application.
+* Add the default English ("en-US") [Resx](https://github.com/syncfusion/wpf-controls-localization-resx-files/blob/master/Syncfusion.PdfViewer.WPF/Syncfusion.PdfViewer.WPF.resx) (resource) file of `PdfViewerControl` in the `Resources` folder named as `Syncfusion.PdfViewer.WPF.resx`.
+* Create a Resx (resource) file and name it as `Syncfusion.PdfViewer.WPF.[Culture name].resx`. For example, `Syncfusion.PdfViewer.WPF.fr.resx` for French culture.
+* Add the resource key such as `OpenDocument` and its corresponding localized value in `Syncfusion.PdfViewer.WPF.fr.resx` file. Refer the below screenshot for the same.
* Execute the application in French culture to see the changes.

@@ -29,14 +29,16 @@ The following screenshot shows the `PdfViewerControl` in French language
## Localize Resource File with Different Assembly or Namespace
-In general, [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) try to read the resource file from executing assembly and its default namespace can be done using [Assembly.GetExecuteAssembly](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly?view=net-7.0) method. When the resource file is located at different assembly or namespace, it can set to the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) by using [LocalizationManager.SetResources](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.LocalizationManager.html#Syncfusion_UI_Xaml_TreeView_LocalizationManager_SetResources_System_Reflection_Assembly_System_String_) method.
+In general, [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) tries to read the resource file from the executing assembly, and its default namespace can be obtained using the [Assembly.GetExecutingAssembly](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly) method. When the resource file is located at different assembly or namespace, it can be set to the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) by using [LocalizationManager.SetResources](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.LocalizationManager.html#Syncfusion_UI_Xaml_TreeView_LocalizationManager_SetResources_System_Reflection_Assembly_System_String_) method.
{% tabs %}
{% highlight c# %}
+using System.Threading;
+
public MainWindow()
{
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR");
-
+
// Set the Custom assembly and namespace for the localization.
LocalizationManager.SetResources(typeof(Custom_Class).Assembly, "ClassLibrary");
InitializeComponent();
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Magnifying-PDF-documents.md b/Document-Processing/PDF/PDF-Viewer/wpf/Magnifying-PDF-documents.md
index 27e0af5c58..8c3745d39e 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Magnifying-PDF-documents.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Magnifying-PDF-documents.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Magnifying PDF documents in WPF Pdf Viewer control | Syncfusion®;
-description: Learn about Magnifying PDF documents support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
+title: Magnifying PDF documents in WPF Pdf Viewer control | Syncfusion®
+description: Learn about Magnifying PDF documents support in Syncfusion® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -13,7 +13,7 @@ The [WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) h

-1. **Combo box**: It allows you to select a zoom percentage from the pre-defined set of values listed in the dropdown. Since it is editable, you can also provide your zoom values by double editing the text area.
+1. **Combo box**: It allows you to select a zoom percentage from the pre-defined set of values listed in the dropdown. Since it is editable, you can also provide your zoom values by directly editing the text area.
2. **Zoom out button**: It allows you to reduce the zoom value by 25% from the current zoom percentage.
3. **Zoom in button**: It allows you to increase the zoom value by 25% from the current zoom percentage.
4. **Fit to width button**: It allows you to fit the document to the width of the control.
@@ -71,7 +71,7 @@ pdfViewer.ZoomMode = ZoomMode.FitWidth;
The default minimum and maximum zoom percentage of the PDF Viewer is 50 and 400 respectively. However, the PDF Viewer allows you to customize the minimum and maximum zoom percentage values based on your requirement.
-You can customize the minimum zoom percentage of the PDF viewer using the [MinimumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MinimumZoomPercentage) property. Its default value is 50. Refer to the following code sample to set the property and apply the customized minimum zoom percent to the PDF Viewer
+You can customize the minimum zoom percentage of the PDF viewer using the [MinimumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MinimumZoomPercentage) property. Its default value is 50. Refer to the following code sample to set the property and apply the customized minimum zoom percent to the PDF Viewer.
N> The allowed value of this property ranges from 10 to the value of the [MaximumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MaximumZoomPercentage) of PDF Viewer.
@@ -82,7 +82,7 @@ pdfViewer.Load(@"../../Data/Barcode.pdf");
//Set the minimum zoom percentage.
pdfViewer.MinimumZoomPercentage = 20;
//Magnify the document to minimum zoom percentage.
-pdfViewer.ZoomTo(pdfviewer.MinimumZoomPercentage);
+pdfViewer.ZoomTo(pdfViewer.MinimumZoomPercentage);
{% endhighlight %}
{% endtabs %}
@@ -93,11 +93,11 @@ N> The allowed value of this property ranges from the value of [MinimumZoomPerce
{% tabs %}
{% highlight c# %}
// Load PDF document.
-pdfviewer.Load(@"../../Data/Barcode.pdf");
+pdfViewer.Load(@"../../Data/Barcode.pdf");
//Set the maximum zoom percentage.
-pdfviewer.MaximumZoomPercentage = 600;
+pdfViewer.MaximumZoomPercentage = 600;
//Magnify the document to maximum zoom percentage.
-pdfviewer.ZoomTo(pdfviewer.MaximumZoomPercentage);
+pdfViewer.ZoomTo(pdfViewer.MaximumZoomPercentage);
{% endhighlight %}
{% endtabs %}
@@ -119,11 +119,11 @@ private void PdfViewer_ZoomChanged(object sender, ZoomEventArgs args)
{% endhighlight %}
{% endtabs %}
-## Active view port rendering at higher zoom percentages
+## Active viewport rendering at higher zoom percentages
-From the 19.3 version, the [MaximumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MaximumZoomPercentage) of the PDF Viewer can be extended up to 6400% with the support of active view port rendering at higher zoom percentages. It renders only the part of the PDF file that is visible on-screen and ignoring the parts that are outside the viewport. The mode is automatically enabled when the page size or zoom increased beyond a specified limit on the zooming. This approach will be helpful to open the large-size pages containing PDF documents at higher zoom levels.
+From the 19.3 version, the [MaximumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MaximumZoomPercentage) of the PDF Viewer can be extended up to 6400% with the support of active viewport rendering at higher zoom percentages. It renders only the part of the PDF file that is visible on-screen and ignoring the parts that are outside the viewport. The mode is automatically enabled when the page size or zoom increased beyond a specified limit on the zooming. This approach will be helpful to open the large-size pages containing PDF documents at higher zoom levels.
-N> Active view port rendering is supported only for the PDFium (default) rendering engine.
+N> Active viewport rendering is supported only for the PDFium (default) rendering engine.
You need to set the [MaximumZoomPercentage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_MaximumZoomPercentage) and call [ZoomTo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ZoomTo_System_Int32_) method to achieve it from the application level as shown in the following code example.
@@ -131,19 +131,19 @@ You need to set the [MaximumZoomPercentage](https://help.syncfusion.com/cr/wpf/S
{% highlight c# %}
//Set the maximum zoom percentage.
-pdfviewer.MaximumZoomPercentage = 6400;
+pdfViewer.MaximumZoomPercentage = 6400;
//Magnify the document to the zoom percentage you needed (less than or equal to 6400).
//In the below example, control will magnify to 1200% zoom.
-pdfviewer.ZoomTo(1200);
+pdfViewer.ZoomTo(1200);
{% endhighlight %}
{% endtabs %}
## Pinch to zoom
-The WPF PDF Viewer supports pinch-to-zoom, allows users to magnify using touch gestures when working on a device with a touch screen. To use pinch-to-zoom, place two fingers on the control and move them apart to zoom in (or together to zoom out).
+The WPF PDF Viewer supports pinch-to-zoom, which allows users to magnify using touch gestures when working on a device with a touch screen. To use pinch-to-zoom, place two fingers on the control and move them apart to zoom in (or together to zoom out).
## Mouse and keyboard shortcuts
**Ctrl (key) + Scroll the mouse wheel up** - To perform zoom in.
-**Ctrl (key) + Scroll the mouse wheel down** - To perform zoom out.
+**Ctrl (key) + Scroll the mouse wheel down** - To perform zoom out.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Navigating-through-the-pages.md b/Document-Processing/PDF/PDF-Viewer/wpf/Navigating-through-the-pages.md
index ddeb0db390..6279e433da 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Navigating-through-the-pages.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Navigating-through-the-pages.md
@@ -9,7 +9,7 @@ documentation: ug
# Page Navigation in WPF Pdf Viewer
-PDF Viewer allows you to navigate through the pages of the PDF document using the [GotoPage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_GotoPage_System_Int32_) method. The following code example illustrates the navigation to page 2 of the PDF document.
+PDF Viewer allows you to navigate through the pages of the PDF document using the [GotoPage](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_GotoPage_System_Int32_) method. The page number is 1-based. The following code example illustrates the navigation to page 2 of the PDF document.
{% tabs %}
{% highlight C# %}
@@ -31,8 +31,8 @@ pdfViewer.GotoPage(2)
{% endhighlight %}
{% endtabs %}
-## Navigate to the horizontal and vertical offset
-You can now scroll to the given horizontal and vertical offset of the PDF document programmatically using the [ScrollTo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ScrollTo_System_Double_System_Double_) method of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). Refer to the following code to scroll the PDF document to the horizontal and vertical offset of 160 and 400 respectively.
+## Scroll to a horizontal and vertical offset
+You can scroll to a specified horizontal and vertical offset of the PDF document programmatically using the [ScrollTo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ScrollTo_System_Double_System_Double_) method of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). Refer to the following code to scroll the PDF document to the horizontal and vertical offset of 160 and 400 respectively.
{% tabs %}
{% highlight C# %}
@@ -54,7 +54,7 @@ pdfViewer.ScrollTo (160, 400)
{% endhighlight %}
{% endtabs %}
-N> Internally, the parameters (offset values) of this method will be multiplied by current zoom factor. So, the parameters (offset values) must be specified in terms of default zoom factor of 1, or 100% zoom.
+N> Internally, the offset values passed to this method are multiplied by the current zoom factor. Therefore, the offset values must be specified in terms of the default zoom factor of 1 (100% zoom).
{% tabs %}
{% highlight C# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Organize-Pages.md b/Document-Processing/PDF/PDF-Viewer/wpf/Organize-Pages.md
index b8559283b0..0c213e927b 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Organize-Pages.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Organize-Pages.md
@@ -1,7 +1,7 @@
---
layout: post
title: Organize Pages in WPF Pdf Viewer control | Syncfusion
-description: Learn about Organize Pages support in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+description: Learn about Organize Pages support in Syncfusion® Essential Studio® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -15,23 +15,23 @@ Use the following steps to organize the PDF page(s) in [PdfViewerControl](https:
1. Click the organize page button in the left pane, this displays the organize pages pane in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
-2. You can rotate or delete a specific page using context menu that appears when hovering the mouse over the pages.
+2. You can rotate or delete a specific page using the context menu that appears when hovering the mouse over the pages.
- 
+ 
3. You can rotate or delete multiple pages using the organize pages toolbar.
- 
+ 
- N> You can use Ctrl/Shift keys to select multiple pages. Also, you can select all pages using Ctrl+A shortcut key. You cannot delete all the pages from the document.
+ N> You can use Ctrl/Shift keys to select multiple pages. Also, you can select all pages using Ctrl+A shortcut key. You cannot delete all the pages from the document.
4. You can rearrange the page(s) by dragging and dropping them.
- 
-
+ 
+
5. You can insert a blank page or any PDF page(s) using the Organize Pages toolbar.

-6.You can insert a blank page or any PDF page(s),and perform clipboard actions like Cut, Copy, and Paste using the more option in the context menu that appears when hovering over a pages.
+6. You can insert a blank page or any PDF page(s), and perform clipboard actions like Cut, Copy, and Paste using the more option in the context menu that appears when hovering over a page.


@@ -190,7 +190,7 @@ N> If any of the already existing page index is not present in rearranged array,
## Removing PDF page(s)
You can remove the PDF page(s) from the PDF document using the RemoveAt method in PageOrganizer.
-To remove the page at specific index from PDF document, refer to the following code example.
+To remove the page at a specific index from the PDF document, refer to the following code example.
{% tabs %}
{% highlight c# %}
@@ -212,7 +212,7 @@ End Sub
{% endhighlight %}
{% endtabs %}
-To remove the set of pages from PDF document, refer to the following code example.
+To remove the set of pages from the PDF document, refer to the following code example.
{% tabs %}
{% highlight c# %}
@@ -247,20 +247,21 @@ pdfViewerControl.PageOrganizer.RemovePagesCommand.Execute(new int[] { 0, 1 });
{% endtabs %}
## Insert Page(s) Customization
-Insert page feature allows users to choose where to add pages using the **Insert Pages** window.Users can access this via from either the Organize Pages toolbar or the context menu that appears when hovering over a pages.
-In the window, there are three options **First**, **Last**, and **Page**. Selecting **First** inserts pages at the document's beginning, while **Last** adds them at the end. The **Page** option lets users specify a position using **Location** **Before** adds pages before the selected page, and **After** inserts them after.
+
+Insert page feature allows users to choose where to add pages using the **Insert Pages** window. Users can access this from either the Organize Pages toolbar or the context menu that appears when hovering over a page.
+In the window, there are three options: **First**, **Last**, and **Page**. Selecting **First** inserts pages at the document's beginning, while **Last** adds them at the end. The **Page** option lets users specify a position using **Location**; **Before** adds pages before the selected page, and **After** inserts them after.
N> The **Location** is accessible only when the **Page** radio button is selected.
### From file
When users want to insert pages using the **From File** option, a browser window will open to select a PDF. Once selected, all pages from the PDF are inserted into the document based on the customization in the **Insert Pages** window.
-
-
+
+
### Blank page
-When users want to insert page a page using the **Blank Page** option, a single blank page will be added to the document as per the Customization in the **Insert Pages** window.
+When users want to insert a page using the **Blank Page** option, a single blank page will be added to the document as per the customization in the **Insert Pages** window.
-
+
## Get the selected page indexes
@@ -273,9 +274,9 @@ You can get the selected page indexes of the PDF document in the organizing page
pdfViewer.PageSelected += PdfViewer_PageSelected;
private void PdfViewer_PageSelected(object sender, PageSelectedEventArgs e)
{
- // Get the selected pages.
- if (e.SelectedPages.Length != 0)
- selectedPages = e.SelectedPages;
+ // Get the selected pages.
+ if (e.SelectedPages.Length != 0)
+ selectedPages = e.SelectedPages;
}
{% endhighlight %}
@@ -283,8 +284,8 @@ private void PdfViewer_PageSelected(object sender, PageSelectedEventArgs e)
## Disabling page organizer
-You can remove the page organizer icon from left pane of the ‘PdfViewerControl’ by setting the ‘PageOrganizerSettings.IsIconVisible’ property to false.
-Refer to the following code example to disable the organize page.
+You can remove the page organizer icon from the left pane of the ‘PdfViewerControl’ by setting the ‘PageOrganizerSettings.IsIconVisible’ property to false.
+Refer to the following code example to disable the page organizer.
{% tabs %}
{% highlight c# %}
@@ -316,7 +317,7 @@ Refer to the following code example to show the annotations and form fields in p
{% tabs %}
{% highlight c# %}
-Private void button_Click(object sender,RoutedEventArgs e)
+private void button_Click(object sender, RoutedEventArgs e)
{
//show the annotations in page organizer.
pdfViewer.PageOrganizerSettings.ShowAnnotations = true;
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Printing-PDF-Files.md b/Document-Processing/PDF/PDF-Viewer/wpf/Printing-PDF-Files.md
index 94cc400983..78f9b6fc77 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Printing-PDF-Files.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Printing-PDF-Files.md
@@ -1,13 +1,13 @@
---
layout: post
-title: Printing PDF Files in WPF Pdf Viewer control | Syncfusion
-description: Learn about Printing PDF Files support in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+title: Printing PDF Files in WPF PDF Viewer control | Syncfusion
+description: Learn about Printing PDF Files support in Syncfusion®; Essential Studio® WPF PDF Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---
-# Printing PDF Files in WPF Pdf Viewer
+# Printing PDF Files in WPF PDF Viewer
PDF Viewer allows printing loaded PDFs using the Print button in the toolbar. The following Print dialog opens upon triggering the Print button.
@@ -55,7 +55,7 @@ pdfviewer1.Print(printerName)
## Customizing print size
-PDF viewer printer settings allows scaling PDF pages to shrink or enlarge while printing.
+PDF Viewer printer settings allow scaling PDF pages to shrink or enlarge while printing.
### Actual Size
@@ -133,7 +133,7 @@ pdfviewer1.PrinterSettings.ScalePercentage = 120
## Printing PDF document with orientation settings
-PDF Viewer printer settings allows the user to print the document with a custom orientation.
+PDF Viewer printer settings allow the user to print the document with a custom orientation.
### Auto Portrait/Landscape
@@ -159,7 +159,7 @@ pdfviewer1.PrinterSettings.PageOrientation = PdfViewerPrintOrientation.Auto
### Portrait
-Portrait option prints the PDF document in portrait orientation and it overrides the orientation settings provided in the print dialog. The following code example illustrates the same.
+Portrait option prints the PDF document in portrait orientation, and it overrides the orientation settings provided in the print dialog. The following code example illustrates the same.
{% tabs %}
{% highlight c# %}
@@ -181,7 +181,7 @@ pdfviewer1.PrinterSettings.PageOrientation = PdfViewerPrintOrientation.Portrait
### Landscape
-Landscape option prints the PDF document in landscape orientation and it overrides the orientation settings provided in print dialog. The following code example illustrates the same.
+Landscape option prints the PDF document in landscape orientation, and it overrides the orientation settings provided in the print dialog. The following code example illustrates the same.
{% tabs %}
{% highlight c# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Redaction.md b/Document-Processing/PDF/PDF-Viewer/wpf/Redaction.md
index 9850e45878..a6196c25ff 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Redaction.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Redaction.md
@@ -41,15 +41,15 @@ End Sub
Use the following steps to perform redaction in the PDF document page:
-1. Click the redaction tool button in the left pane, this displays the redaction toolbar as a secondary toolbar in the `PdfViewerControl`.
-2. Select **Mark for Redaction** from redaction toolbar to select the region or text to be redacted
+1. Click the redaction tool button in the left pane, this displays the redaction toolbar as a secondary toolbar in the `PdfViewerControl`.
+2. Select **Mark for Redaction** from redaction toolbar to select the region or text to be redacted
- 
+ 
-3. Use the mouse pointer to select the region or the text to be redacted. This operation will create a mark in the region selected.
-4. Choose Apply in the redaction toolbar to redact the marked region.
+3. Use the mouse pointer to select the region or the text to be redacted. This operation will create a mark in the region selected.
+4. Choose Apply in the redaction toolbar to redact the marked region.
-N> Undo and redo can only be performed before applying the redaction, these operations cannot be performed after applying redaction.
+N> Undo and redo can only be performed before applying the redaction. These operations cannot be performed after applying redaction.
### Mark regions for redaction without UI interaction
@@ -58,34 +58,36 @@ You can also mark regions for redaction without UI interaction from the code beh
{% tabs %}
{% highlight c# %}
+using System.Collections.Generic;
+using System.Drawing;
+
private void Button_Click(object sender, RoutedEventArgs e)
-{
- List rectangles = new List();
- rectangles = new List() { new RectangleF(100, 100, 100, 100) };
-
- // Appends regions to the existing marked regions, marking regions if it does not already exist.
- pdfViewerControl.PageRedactor.MarkRegions(0, rectangles, false);
- // Enable the redaction mode.
- pdfViewerControl.PageRedactor.EnableRedactionMode = true;
+{
+ List rectangles = new List() { new RectangleF(100, 100, 100, 100) };
+
+ // Appends regions to the existing marked regions, marking regions if it does not already exist.
+ pdfViewerControl.PageRedactor.MarkRegions(0, rectangles, false);
+ // Enable the redaction mode.
+ pdfViewerControl.PageRedactor.EnableRedactionMode = true;
}
{% endhighlight %}
{% endtabs %}
-N> You can overwrite the existing marked regions with the new regions, By passing the value `true` for the `clearExisting` parameter of `MarkRegions` method.
+N> You can overwrite the existing marked regions with the new regions, by passing the value `true` for the `clearExisting` parameter of `MarkRegions` method.
-## Customizing redaction appearance
+## Customizing redaction appearance
-Choosing **Properties** from the redaction toolbar will show the default Redaction Tool Properties window, which contain two tabs:
+Choosing **Properties** from the redaction toolbar will show the default Redaction Tool Properties window, which contains two tabs:
-• Appearance
-• General
+- Appearance
+- General
### Appearance tab
The redacted area fill color, overlay text, and redaction mark area appearances can be customized using the options in the Appearance tab.
-#### Redaction appearance
+#### Redaction appearance
The following image illustrates how to change the fill color of the redacted area.
@@ -159,7 +161,7 @@ End Sub
The marked redaction appearance represents the appearance of the region or text marked for redaction before the redaction is being applied. The fill color, border color, and fill color opacity of the redaction marked area can also be customized.
-The following image illustrates how to customize the appearance of the redaction marked area.
+The following image illustrates how to customize the appearance of the redaction marked area.

@@ -206,7 +208,7 @@ The following image illustrates the customization of Author and Subject of the r
## Appearance of the included redaction
-Selecting the properties option from the context menu that is displayed when right-clicking the selected redaction will show the Redaction Tool Properties window of selected redaction.
+Selecting the properties option from the context menu that is displayed when right-clicking the selected redaction will show the Redaction Tool Properties window of the selected redaction.
The following image illustrates how to customize the appearance of the included redaction.

@@ -219,7 +221,7 @@ Notes can be added to the redaction marked region by choosing Open Pop-up note o
## Delete redaction marked region
-Select the delete option from the context menu that is displayed when right-clicking the selected redaction marked region will delete the respective redaction from the PDF document.
+Selecting the delete option from the context menu that is displayed when right-clicking the selected redaction marked region will delete the respective redaction from the PDF document.
The following image illustrates how to delete the included redaction from the PDF document.

@@ -228,7 +230,7 @@ The following image illustrates how to delete the included redaction from the PD
### Redaction applied notification
-The `RedactionApplied` event notifies you when the marked regions of the page(s) are redacted. It provides the details of the redacted region through the `RedactionEventArgs`. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl.html).
+The `RedactionApplied` event notifies you when the marked regions of the page(s) are redacted. It provides the details of the redacted region through the `RedactionEventArgs`. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
@@ -238,7 +240,7 @@ using System.Collections.Generic;
using System.Windows;
namespace RedactionAppliedEventDemo
-{
+{
public partial class MainWindow : Window
{
public MainWindow()
@@ -270,9 +272,9 @@ namespace RedactionAppliedEventDemo
## Keyboard shortcuts
The following keyboard shortcuts are available to customize the marked redaction in the PDF document:
-• Delete key: Deletes the selected mark redaction from the PDF document.
-• Ctrl + Z: Performs undo functionality for recently performed operations.
-• Ctrl + Y: Performs redo functionality for recently performed operations.
+- Delete key: Deletes the selected mark redaction from the PDF document.
+- Ctrl + Z: Performs undo functionality for recently performed operations.
+- Ctrl + Y: Performs redo functionality for recently performed operations.
N> All these operations can only be performed before applying the redaction.
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Right-To-Left.md b/Document-Processing/PDF/PDF-Viewer/wpf/Right-To-Left.md
index 35aefc9607..0147738eea 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Right-To-Left.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Right-To-Left.md
@@ -13,7 +13,7 @@ The [WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) c
## Enabling RTL in WPF PDF Viewer
-RTL can be configured in the WPF PDF Viewer using the `FlowDirection` property. This can be set either in **XAML** or in the **code-behind (C#)**.
+RTL can be configured in the WPF PDF Viewer using the `FlowDirection` property. By default, the layout direction is `LeftToRight`; setting it to `RightToLeft` enables RTL. This can be set either in **XAML** or in the **code-behind (C#)**.
## Configuring RTL in XAML
@@ -33,11 +33,14 @@ RTL can be enabled in XAML by setting the `FlowDirection` property to `RightToLe
## Configuring RTL in Code-Behind (C#)
-RTL can also be configured programmatically by setting the `FlowDirection` property in the code-behind. Refer the following code snippet.
+RTL can also be configured programmatically by setting the `FlowDirection` property in the code-behind. Refer to the following code snippet.
{% tabs %}
{% highlight c# %}
+using System.Windows;
+using Syncfusion.Windows.PdfViewer;
+
namespace RTLSample
{
public partial class MainWindow : Window
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Saving-the-PDF-document.md b/Document-Processing/PDF/PDF-Viewer/wpf/Saving-the-PDF-document.md
index 3f7b4bc208..cdf8db977c 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Saving-the-PDF-document.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Saving-the-PDF-document.md
@@ -20,7 +20,7 @@ You can also call the [Save](https://help.syncfusion.com/cr/wpf/Syncfusion.Windo
{% tabs %}
{% highlight c# %}
-Private void SavePDF()
+private void SavePDF()
{
//Save the PDF file to a specific file path after doing any modifications by passing the file name as a parameter to the `Save` method.
pdfViewer.Save("Saved.pdf");
@@ -75,9 +75,9 @@ namespace SaveEvents
{% endhighlight %}
{% endtabs %}
-### Canceling save in Save events
+### Canceling a save operation
-The [BeginSave](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_BeginSave) event occurs before initiating the save operation of the PDF file. It also allows you to cancel the save operation using the [Cancel](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.BeginSaveEventArgs.html#Syncfusion_Windows_PdfViewer_BeginSaveEventArgs_Cancel) property of [BeginSaveEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.BeginSaveEventArgs.html). The following code shows how to wire the event in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
+You can cancel the save operation by setting the [Cancel](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.BeginSaveEventArgs.html#Syncfusion_Windows_PdfViewer_BeginSaveEventArgs_Cancel) property of [BeginSaveEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.BeginSaveEventArgs.html) to `true` within the [BeginSave](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_BeginSave) event handler. The following code shows how to cancel the save operation in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Searching-Text.md b/Document-Processing/PDF/PDF-Viewer/wpf/Searching-Text.md
index 8ff4ba2b45..c00fee2c65 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Searching-Text.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Searching-Text.md
@@ -30,7 +30,7 @@ The [SearchText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer
### Search the initial occurrence of the text
-The [SearchText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchText_System_String_) method finds the occurrences of the target text and highlights the first occurrence of the search in the UI. A user can also search the text with case sensitivity by passing the Boolean parameter as ‘true’ to the [SearchText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchText_System_String_System_Boolean_) method. The below code illustrates how to search a text in a PDF programmatically.
+The [SearchText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchText_System_String_) method finds the occurrences of the target text and highlights the first occurrence of the search in the UI. A user can also search the text with case sensitivity by passing the Boolean parameter as ‘true’ to the [SearchText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchText_System_String_System_Boolean_) method. The following code example illustrates how to search a text in a PDF programmatically.
{% tabs %}
{% highlight c# %}
@@ -47,7 +47,7 @@ private void PdfViewer_DocumentLoaded(object sender, System.EventArgs args)
### Search the next occurrence of the text
-The [SearchNextText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchNextText_System_String_) method highlights the next occurrence of the highlighted search in the UI. If there is no highlighted search, it will highlight the first occurrence of the search. A user can also search the text with case sensitivity by passing the Boolean parameter as ‘true’ to the [SearchNextText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchNextText_System_String_System_Boolean_) method. The below code snippet illustrates how to search the next occurrence of the text programmatically.
+The [SearchNextText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchNextText_System_String_) method highlights the next occurrence of the highlighted search in the UI. If there is no highlighted search, it will highlight the first occurrence of the search. A user can also search the text with case sensitivity by passing the Boolean parameter as ‘true’ to the [SearchNextText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchNextText_System_String_System_Boolean_) method. The following code example illustrates how to search the next occurrence of the text programmatically.
{% tabs %}
{% highlight c# %}
@@ -63,14 +63,14 @@ private void SearchNext_Click(object sender, RoutedEventArgs e)
### Search the previous occurrence of the text
-The [SearchPreviousText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchPreviousText_System_String_) method highlights the previous occurrence of the highlighted search in the UI. The user can also search the text with case sensitivity bypassing the Boolean parameter as ‘true’ to the [SearchPreviousText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchPreviousText_System_String_System_Boolean_) method. The below code snippet illustrates how to search the previous occurrence of the text programmatically.
+The [SearchPreviousText(String)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchPreviousText_System_String_) method highlights the previous occurrence of the highlighted search in the UI. The user can also search the text with case sensitivity by passing the Boolean parameter as ‘true’ to the [SearchPreviousText(String, Boolean)](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SearchPreviousText_System_String_System_Boolean_) method. The following code example illustrates how to search the previous occurrence of the text programmatically.
{% tabs %}
{% highlight c# %}
private void SearchPrevious_Click(object sender, RoutedEventArgs e)
{
- //Search and highlight the previuos occurrence of the target text
+ //Search and highlight the previous occurrence of the target text
pdfViewer.SearchPreviousText("Target text");
}
@@ -79,13 +79,13 @@ private void SearchPrevious_Click(object sender, RoutedEventArgs e)
## Find text method
-N> From version 27.1.x, we have used text extraction engine for find text from PDF documents. By default text extraction engine uses PDFium for extracting text information. Please refer to the [link](https://help.syncfusion.com/wpf/pdf-viewer/text-extraction-engines) for more details.
+N> From version 27.1.x, we have used the text extraction engine for finding text from PDF documents. By default, the text extraction engine uses PDFium for extracting text information. Please refer to the [link](https://help.syncfusion.com/wpf/pdf-viewer/text-extraction-engines) for more details.
The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method allows the user to search a particular text and get its bounds after loading the document in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method returns ‘true’ when the given text is found in the document; else, it returns ‘false’.
### Find and get the bounds of a text
-The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method takes the input argument as the given text. It provides a dictionary that contains the page index and the list of rectangular coordinates(bounds) of the text found on that page. The below code snippet shows how to get the bounds of the given text:
+The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF____) method takes the input argument as the given text. It provides a dictionary that contains the page index and the list of rectangular coordinates (bounds) of the text found on that page. The following code example illustrates how to get the bounds of the given text:
{% tabs %}
{% highlight c# %}
@@ -109,7 +109,7 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
### Find and get the bounds of a text on the desired page
-The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF___) method takes the input arguments as the text to be found along with the desired page index and provides a list of values that contains the rectangular coordinates(bounds) of the found text. The below code snippet shows how to get the bounds of the given text on a particular page:
+The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_String_System_Int32_System_Collections_Generic_List_System_Drawing_RectangleF___) method takes the input arguments as the text to be found along with the desired page index and provides a list of values that contains the rectangular coordinates (bounds) of the found text. The following code example illustrates how to get the bounds of the given text on a particular page:
{% tabs %}
{% highlight c# %}
@@ -123,7 +123,7 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
bool isMatchFound = pdfViewer.FindText("FindText",0, out textSearch);
if (isMatchFound)
{
- //Get the bounds of the first occurance in the particluar page
+ //Get the bounds of the first occurrence in the particular page
RectangleF bounds = textSearch[0];
}
}
@@ -133,7 +133,7 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
### Find and get the bounds of the list of text
-The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_Collections_Generic_List_System_String__System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_Syncfusion_Windows_PdfViewer_TextSearchResult____) method takes the input argument as the list of text that needs to be found. It provides a list of ‘TextSearchResult’, which contains the found text and its rectangular coordinates(bounds). The below code snippet shows how to get the bounds of the found text from the Text Search Result:
+The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_Collections_Generic_List_System_String__System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_Syncfusion_Windows_PdfViewer_TextSearchResult____) method takes the input argument as the list of text that needs to be found. It provides a `Dictionary` mapping each page index to a list of [TextSearchResult](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.TextSearchResult.html) objects, where each entry contains the found text and its rectangular coordinates (bounds). The following code example illustrates how to get the bounds of the found text from the TextSearchResult:
{% tabs %}
{% highlight c# %}
@@ -143,7 +143,7 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
//Get the occurrences of the target text and location.
Dictionary> searchResult = new Dictionary>();
//List of text need to be found
- List findText = new List() {"Find","Text"};;
+ List findText = new List() {"Find","Text"};
//Return true, if the given text is found in the particular page
bool isMatchFound = pdfViewer.FindText(findText, out searchResult);
@@ -157,9 +157,9 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
{% endhighlight %}
{% endtabs %}
-### Find and get the bounds of the list of text on multiple lines
+### Find and get the bounds of the list of text on the desired page
-The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) method provides an overload with an `enableMultilineSearch` parameter that allows detection of matches spanning line breaks or multiple pages. When enabled, results are returned as line‑based TextSearchResult entries grouped by page, including the matched text and corresponding RectangleF bounds. The default value of enableMultilineSearch is false.
+The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_Collections_Generic_List_System_String__System_Int32_System_Collections_Generic_List_Syncfusion_Pdf_Parsing_MatchedItem___) method takes the input argument as the list of text to be found along with the desired page index and provides the list of [MatchedItem](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.Parsing.MatchedItem.html), which contains the matched text and its rectangular coordinates (bounds). The following code example illustrates how to get the bounds of the text from the matched item:
{% tabs %}
{% highlight c# %}
@@ -167,36 +167,25 @@ The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.P
private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
{
//Get the occurrences of the target text and location.
- Dictionary> searchResult = new Dictionary>();
+ List searchResult = new List();
//List of text need to be found
- List findText = new List() {"Find the text that spans across multiple lines and pages"};
+ List findText = new List() {"Find","Text"};
- //Enable multiline search to detect line and page breaks and return line-wise results.
- //Return true, if the given text is found across lines/pages
- bool isMatchFound = pdfViewer.FindText(findText, out searchResult, true);
+ //Return true, if the given text is found in the particular page
+ bool isMatchFound = pdfViewer.FindText(findText,0, out searchResult);
if (isMatchFound)
{
- foreach (var Index in searchResult)
- {
- int pageIndex = Index.Key;
- List results = Index.Value;
- foreach (TextSearchResult result in results)
- {
- //The Bounds contains the line-wise rectangle for the matched text.
- RectangleF bounds = result.Bounds;
- //The Text property contains the matched text for this line.
- string matchedText = result.Text;
- }
- }
+ //Get the bounds of the first MatchedItem on the desired page
+ RectangleF bounds = searchResult[0].Bounds;
}
}
{% endhighlight %}
{% endtabs %}
-### Find and get the bounds of the list of text on the desired page
+### Find and get the bounds of the list of text on multiple lines
-The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_Collections_Generic_List_System_String__System_Int32_System_Collections_Generic_List_Syncfusion_Pdf_Parsing_MatchedItem___) method takes the input argument as the list of text to be found along with the desired page index and provides the list of [MatchedItem](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.Parsing.MatchedItem.html), which contains the matched text, and its rectangular coordinates(bounds). The below code snippet illustrates how to get the bounds of the text from the matched item:
+The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FindText_System_Collections_Generic_List_System_String__System_Collections_Generic_Dictionary_System_Int32_System_Collections_Generic_List_Syncfusion_Windows_PdfViewer_TextSearchResult___System_Boolean_) method provides an overload with an `enableMultilineSearch` parameter that allows detection of matches spanning line breaks or multiple pages. When enabled, results are returned as line-based TextSearchResult entries grouped by page, including the matched text and corresponding RectangleF bounds. The default value of `enableMultilineSearch` is `false`. Use this overload when the text to find may wrap across lines or pages.
{% tabs %}
{% highlight c# %}
@@ -204,16 +193,27 @@ The [FindText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.P
private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
{
//Get the occurrences of the target text and location.
- List searchResult = new List();
+ Dictionary> searchResult = new Dictionary>();
//List of text need to be found
- List findText = new List() {"Find","Text"};
+ List findText = new List() {"Find the text that spans across multiple lines and pages"};
- //Return true, if the given text is found in the particular page
- bool isMatchFound = pdfViewer.FindText(findText,0, out searchResult);
+ //Enable multiline search to detect line and page breaks and return line-wise results.
+ //Return true, if the given text is found across lines/pages
+ bool isMatchFound = pdfViewer.FindText(findText, out searchResult, true);
if (isMatchFound)
{
- //Get the bounds of the first MatchedItem on the desired page
- RectangleF bounds = searchResult[0].Bounds;
+ foreach (var entry in searchResult)
+ {
+ int pageIndex = entry.Key;
+ List results = entry.Value;
+ foreach (TextSearchResult result in results)
+ {
+ //The Bounds contains the line-wise rectangle for the matched text.
+ RectangleF bounds = result.Bounds;
+ //The Text property contains the matched text for this line.
+ string matchedText = result.Text;
+ }
+ }
}
}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Select-and-copy-text.md b/Document-Processing/PDF/PDF-Viewer/wpf/Select-and-copy-text.md
index f244936ee3..0cd57516b1 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Select-and-copy-text.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Select-and-copy-text.md
@@ -9,7 +9,7 @@ documentation: ug
# Select and Copy Text in PDF files using WPF PDF Viewer
-In PDF Viewer, text can be selected by clicking the mouse left button and dragging the mouse pointer over the text in any direction.
+In PDF Viewer, text can be selected by clicking the left mouse button and dragging the mouse pointer over the text in any direction.
N> From version 19.4.0.48, we have updated our default text extraction engine to PDFium for extracting text information from PDF documents. Based on the text information, we select text in the PDF documents. Please refer to the [link](https://help.syncfusion.com/wpf/pdf-viewer/text-extraction-engines) for more details.
@@ -30,6 +30,8 @@ The selected text can be retrieved as string from the [TextSelectionCompletedEve
{% tabs %}
{% highlight c# %}
+using System.Drawing;
+
private void PdfViewer_TextSelectionCompleted(object sender, TextSelectionCompletedEventArgs args)
{
//Get the whole selected text
@@ -43,7 +45,7 @@ private void PdfViewer_TextSelectionCompleted(object sender, TextSelectionComple
## Copying the selected text
-The selected text can be copied by clicking the copy from the context menu, which appears when clicking the right mouse button after the text is selected.
+The selected text can be copied by clicking **Copy** from the context menu, which appears when clicking the right mouse button after the text is selected.

diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Themes.md b/Document-Processing/PDF/PDF-Viewer/wpf/Themes.md
index 2d26bb90b7..e38908d7e5 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Themes.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Themes.md
@@ -19,10 +19,10 @@ PdfViewerControl supports the following built-in themes.
* FluentDark
* SystemTheme
-Refer to the below links to apply themes for the PdfViewerControl,
+Refer to the following links to apply themes for the PdfViewerControl:
* [Apply theme using SfSkinManager](https://help.syncfusion.com/wpf/themes/skin-manager)
-
+
* [Create a custom theme using ThemeStudio](https://help.syncfusion.com/wpf/themes/theme-studio#creating-custom-theme)

diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-scroll-bar.md b/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-scroll-bar.md
index 2549c5e1bb..5cc608d1f0 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-scroll-bar.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-scroll-bar.md
@@ -1,7 +1,7 @@
---
layout: post
-title: Toggle visibility of the scroll bar in WPF Pdf Viewer | Syncfusion®;
-description: Learn about Toggle visibility of the scroll bar support in Syncfusion®; WPF Pdf Viewer control and more.
+title: Toggle visibility of the scroll bar in WPF Pdf Viewer | Syncfusion®
+description: Learn how to toggle the visibility of the scroll bar in Syncfusion® WPF Pdf Viewer control and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -9,7 +9,7 @@ documentation: ug
# Toggle visibility of the scroll bar in WPF Pdf Viewer
-PDF Viewer supports showing and hiding scrollbar, when you feel to use the PDF Viewer only with the touch support, you can hide the default scrollbars of the PDF Viewer using the [ShowScrollbar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ShowScrollbar). The following code example hides the scrollbar in the PDF Viewer control.
+PDF Viewer supports showing and hiding a scrollbar, when you want to use the PDF Viewer only with touch support, you can hide the default scrollbars of the PDF Viewer using the [ShowScrollbar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ShowScrollbar). The following code example hides the scrollbar in the PDF Viewer control.
{% tabs %}
{% highlight c# %}
@@ -20,7 +20,7 @@ PdfViewerControl pdfViewer1 = new PdfViewerControl();
pdfViewer1.Load("Sample.pdf");
// Hiding the scrollbar of the PDF Viewer
-pdfviewer1.ShowScrollbar = false;
+pdfViewer1.ShowScrollbar = false;
{% endhighlight %}
@@ -34,7 +34,7 @@ Private pdfViewer1 As New PdfViewerControl()
pdfViewer1.Load("Sample.pdf")
' Hiding the scrollbar of the PDF Viewer
-pdfviewer1.ShowScrollbar = False
+pdfViewer1.ShowScrollbar = False
{% endhighlight %}
-{% endtabs %}
+{% endtabs %}
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-tool-bar.md b/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-tool-bar.md
index 83953355f9..94627eb3c1 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-tool-bar.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Toggling-visibility-of-the-tool-bar.md
@@ -1,7 +1,7 @@
---
layout: post
title: Toggle visibility of the tool bar in WPF Pdf Viewer | Syncfusion
-description: Learn about Toggle visibility of the tool bar support in Syncfusion®; WPF Pdf Viewer control and more.
+description: Learn how to toggle the visibility of the tool bar in Syncfusion® WPF Pdf Viewer control and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -9,7 +9,7 @@ documentation: ug
# Toggle visibility of the tool bar in WPF Pdf Viewer
-PDF Viewer supports showing and hiding toolbar, when you feel to customize the toolbar, you can hide the default toolbar of the PDF Viewer using the [ShowToolbar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ShowToolbar) property. The following code example hides the default toolbar in the PDF Viewer control.
+PDF Viewer supports showing and hiding the toolbar. To customize the toolbar, you can hide the default toolbar of the PDF Viewer using the [ShowToolbar](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ShowToolbar) property. The following code example hides the default toolbar in the PDF Viewer control.
{% tabs %}
{% highlight c# %}
@@ -23,54 +23,54 @@ pdfViewer.ShowToolbar = False
{% endhighlight %}
{% endtabs %}
-## Expand the Annotation toolbar by programmatically.
+## Expand the annotation toolbar programmatically
-The annotation toolbar is a secondary toolbar of PDF Viewer control that contains a collection of annotation buttons. By default, this annotation toolbar will be collapsed. To expand annotation toolbar at runtime, the user can click show annotations button, which is present in the primary toolbar. In order to expand annotation toolbar at loading or by programmatically, the user can just enable the isChecked property in annotations button as true. The following code example shows how to expands the annotation toolbar by programmatically in the PDF Viewer control.
+The annotation toolbar is a secondary toolbar of the PDF Viewer control that contains a collection of annotation buttons. By default, this annotation toolbar will be collapsed. To expand the annotation toolbar at runtime, the user can click show annotations button, which is present in the primary toolbar. In order to expand the annotation toolbar at loading or programmatically, the user can just enable the isChecked property in the annotations button as true. The following code example shows how to expand the annotation toolbar programmatically in the PDF Viewer control.
{% tabs %}
{% highlight c# %}
private void ExpandAnnotationToolbar()
{
- // Get the instance of the toolbar using its template name.
- DocumentToolbar toolbar = pdfViewer.Template.Findname("PART_Toolbar", pdfViewer) as DocumentToolbar;
- // Get the instance of the annotation button using its template name.
- ToggleButton annotationButton = (ToggleButton)toolbar.Template.Findname("PART_Annotations", toolbar);
- // Expand the annotation toolbar.
- annotationButton.IsChecked = true;
+ // Get the instance of the toolbar using its template name.
+ DocumentToolbar toolbar = pdfViewer.Template.FindName("PART_Toolbar", pdfViewer) as DocumentToolbar;
+ // Get the instance of the annotation button using its template name.
+ ToggleButton annotationButton = (ToggleButton)toolbar.Template.FindName("PART_Annotations", toolbar);
+ // Expand the annotation toolbar.
+ annotationButton.IsChecked = true;
}
{% endhighlight %}
{% highlight vbnet %}
Private Sub ExpandAnnotationToolbar()
' Get the instance of the toolbar using its template name.
- Dim toolbar As DocumentToolbar = TryCast(pdfViewer.Template.Findname("PART_Toolbar", pdfViewer), DocumentToolbar)
- ' Get the instance of the annotation button using its template name.
- Dim annotationButton As ToggleButton = CType(toolbar.Template.Findname("PART_Annotations", toolbar), ToggleButton)
- ' Expand the annotation toolbar.
- annotationButton.IsChecked = True
+ Dim toolbar As DocumentToolbar = TryCast(pdfViewer.Template.FindName("PART_Toolbar", pdfViewer), DocumentToolbar)
+ ' Get the instance of the annotation button using its template name.
+ Dim annotationButton As ToggleButton = CType(toolbar.Template.FindName("PART_Annotations", toolbar), ToggleButton)
+ ' Expand the annotation toolbar.
+ annotationButton.IsChecked = True
End Sub
{% endhighlight %}
{% endtabs %}
## Hide the vertical toolbar
-You can hide the vertical toolbar which is present in the left side of PDF Viewer by disabling all the items present in the toolbar. Refer to the following code to hide the vertical toolbar.
+You can hide the vertical toolbar which is present on the left side of the PDF Viewer by disabling all the items in the toolbar. Refer to the following code to hide the vertical toolbar.
{% tabs %}
{% highlight c# %}
private void HideVerticalToolbar()
{
- // Hides the thumbnail icon.
- pdfViewer.ThumbnailSettings.IsVisible = false;
- // Hides the bookmark icon.
- pdfViewer.IsBookmarkEnabled = false;
- // Hides the layer icon.
- pdfViewer.EnableLayers = false;
- // Hides the organize page icon.
- pdfViewer.PageOrganizerSettings.IsIconVisible = false;
- // Hides the redaction icon.
- pdfViewer.EnableRedactionTool = false;
- // Hides the form icon.
- pdfViewer.FormSettings.IsIconVisible = false;
+ // Hides the thumbnail icon.
+ pdfViewer.ThumbnailSettings.IsVisible = false;
+ // Hides the bookmark icon.
+ pdfViewer.IsBookmarkEnabled = false;
+ // Hides the layer icon.
+ pdfViewer.EnableLayers = false;
+ // Hides the organize page icon.
+ pdfViewer.PageOrganizerSettings.IsIconVisible = false;
+ // Hides the redaction icon.
+ pdfViewer.EnableRedactionTool = false;
+ // Hides the form icon.
+ pdfViewer.FormSettings.IsIconVisible = false;
}
{% endhighlight %}
{% highlight vbnet %}
@@ -85,4 +85,4 @@ End Sub
{% endhighlight %}
{% endtabs %}
-N> The sample project for disabling top and left toolbar is available in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Toolbar/HideToolbar).
+N> The sample project for disabling top and left toolbar is available in the [GitHub](https://github.com/SyncfusionExamples/WPF-PDFViewer-Examples/tree/master/Toolbar/HideToolbar).
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Viewing-PDF-Files.md b/Document-Processing/PDF/PDF-Viewer/wpf/Viewing-PDF-Files.md
index ef5077fb35..f16f41c9fb 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Viewing-PDF-Files.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Viewing-PDF-Files.md
@@ -18,16 +18,16 @@ You can open a PDF file from the toolbar by browsing it from the local disk. You
1. Add the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) in the MainWindow.xaml and run the project.
~~~xaml
-
-
-
-
-
+
+
+
+
+
~~~
2. Click the Open button in the toolbar, as shown in the following picture. 
@@ -48,7 +48,7 @@ namespace PdfViewerDemo
///
public partial class MainWindow : Window
{
- # region Constructor
+ #region Constructor
public MainWindow()
{
InitializeComponent();
@@ -64,7 +64,7 @@ namespace PdfViewerDemo
## View PDF file from stream
-You can view the PDF file from code behind, by passing the [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?redirectedfrom=MSDN&view=netcore-3.1) as a parameter to the Load method of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). Refer to the following code to perform the same.
+You can view the PDF file from code behind, by passing the [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream) as a parameter to the Load method of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). Refer to the following code to perform the same.
{% tabs %}
{% highlight c# %}
@@ -78,7 +78,7 @@ namespace PdfViewerDemo
///
public partial class MainWindow : Window
{
- # region Constructor
+ #region Constructor
public MainWindow()
{
InitializeComponent();
@@ -95,7 +95,7 @@ namespace PdfViewerDemo
## View PDF file using the ItemSource property
-You can also view a PDF file using the [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). The property accepts a string file path, a [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=net-7.0&redirectedfrom=MSDN), and a [PdfLoadedDocument](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) object.
+You can also view a PDF file using the [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). The property accepts a string file path, a [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream), and a [PdfLoadedDocument](https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Parsing.PdfLoadedDocument.html) object.
{% tabs %}
{% highlight c# %}
@@ -108,7 +108,7 @@ namespace PdfViewerDemo
///
public partial class MainWindow : Window
{
- # region Constructor
+ #region Constructor
public MainWindow()
{
InitializeComponent();
@@ -122,7 +122,8 @@ namespace PdfViewerDemo
{% endhighlight %}
{% endtabs %}
-Refer the below code snippet to load a [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=net-7.0&redirectedfrom=MSDN) using the [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property
+Refer to the following code snippet to load a [Stream](https://learn.microsoft.com/en-us/dotnet/api/system.io.stream) using the [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property.
+
{% tabs %}
{% highlight c# %}
//Load PDF file as Stream using the `ItemSource` property.
@@ -141,11 +142,11 @@ pdfViewer.ItemSource = pdfLoadedDocument;
## View PDF file using ItemSource with DataContext
-The [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html)’s [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property allows you to bind PDF documents in XAML. This property accepts a stream input that can be bounded to the viewer during initialization. The following steps explain how to display a PDF file using the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html):
+The [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html)’s [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) property allows you to bind PDF documents in XAML. This property accepts a stream input that can be bound to the viewer during initialization. The following steps explain how to display a PDF file using the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html):
N> From v16.3.0x onwards, PDF Viewer uses PDFium as a default rendering engine to render the PDF pages, which is a more robust and promising rendering engine. Refer to this [link](https://help.syncfusion.com/wpf/pdf-viewer/pdf-rendering-engines) for more details.
-1. Create a simple class in the application that implements [INotifyPropertyChanged](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netcore-3.1) and declare a file stream property in the class as shown in the following code sample.
+1. Create a simple class in the application that implements [INotifyPropertyChanged](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged) and declare a file stream property in the class as shown in the following code sample.
{% tabs %}
{% highlight c# tabtitle="PdfReport.cs" %}
@@ -188,27 +189,32 @@ namespace PdfViewerDemo
{% endhighlight %}
{% endtabs %}
-2. Set the [DataContext](https://learn.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.datacontext?view=windowsdesktop-8.0&viewFallbackFrom=netcore-3.1) to the Window for data binding. To add the `DataContext` in XAML, use the following code example.
+2. Set the [DataContext](https://learn.microsoft.com/en-us/dotnet/api/system.windows.frameworkelement.datacontext) to the Window for data binding. To add the `DataContext` in XAML, use the following code example.
{% tabs %}
{% highlight xaml tabtitle="MainWindow.xaml" %}
-
+
{% endhighlight %}
{% endtabs %}
-
3. After setting the `DataContext`, bind the file stream property to the [ItemSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ItemSource) dependency property of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) using the following code sample in XAML.
{% tabs %}
{% highlight xaml tabtitle="MainWindow.xaml" %}
-
-
+
{% endhighlight %}
{% endtabs %}
@@ -222,16 +228,16 @@ The [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfV
1. Add the [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) control in the MainWindow.xaml.
~~~xaml
-
-
-
-
-
+
+
+
+
+
~~~
2. Load the file using the [Load](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_Load_System_String_) method as mentioned in the following code snippet in MainWindow.xaml.cs.
@@ -261,7 +267,7 @@ The [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfV
3. Run the project.
-The following picture illustrates how the PDF file being displayed in [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) control. 
+The following picture illustrates how the PDF file is being displayed in [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) control. 
## Avoid exception while loading PDF Document
@@ -284,7 +290,7 @@ For instance, when attempting to open a document through a button click event, u
## Obtain the PDF file information
-You can get the information on the PDF file that is being displayed in the control using the [DocumentInfo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_DocumentInfo) property of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). This property provides you the information such as file name and the folder name from that the PDF file is opened using the [FileName](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.DocumentInfo.html#Syncfusion_Windows_PdfViewer_DocumentInfo_FileName) and [FilePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.DocumentInfo.html#Syncfusion_Windows_PdfViewer_DocumentInfo_FilePath) properties respectively.
+You can get the information on the PDF file that is being displayed in the control using the [DocumentInfo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_DocumentInfo) property of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html). This property provides you the information such as file name and the folder name from which the PDF file is opened using the [FileName](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.DocumentInfo.html#Syncfusion_Windows_PdfViewer_DocumentInfo_FileName) and [FilePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.DocumentInfo.html#Syncfusion_Windows_PdfViewer_DocumentInfo_FilePath) properties respectively.
Refer to the following code to obtain the document information using the [DocumentInfo](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_DocumentInfo) property.
@@ -296,11 +302,11 @@ using System.Windows;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
- # region Constructor
+ #region Constructor
public MainWindow()
{
InitializeComponent();
@@ -327,11 +333,11 @@ using System.Windows;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
- # region Constructor
+ #region Constructor
public MainWindow()
{
InitializeComponent();
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-With-PDF-Coordinates.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-With-PDF-Coordinates.md
index 6a3e75cdd1..c570dafb6e 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-With-PDF-Coordinates.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-With-PDF-Coordinates.md
@@ -1,7 +1,7 @@
---
layout: post
-title: PDF Coordinates in WPF Pdf Viewer control | Syncfusion®
-description: Learn about PDF Coordinates support in Syncfusion® Essential Studio® WPF Pdf Viewer control, its elements and more.
+title: PDF Coordinates in WPF PDF Viewer control | Syncfusion®
+description: Learn about PDF Coordinates support in Syncfusion® Essential Studio® WPF PDF Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -13,9 +13,9 @@ The [WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) a
## Client coordinates
-The WPF PDF Viewer specifies the position of points in the client area(viewport) using client coordinates. The upper-left corner of the client area (viewport) of the control is the origin for client coordinates. The dimensions of the client area(viewport) are also known as **client rectangle**, which is the bounds of the control without non-client elements such as toolbars and scroll bars. The client rectangle in the WPF PDF Viewer is represented by the red rectangle in the following figure.
+The WPF PDF Viewer specifies the position of points in the client area (viewport) using client coordinates. The upper-left corner of the client area (viewport) of the control is the origin for client coordinates. The dimensions of the client area (viewport) are also known as **client rectangle**, which is the bounds of the control without non-client elements such as toolbars and scroll bars. The client rectangle in the WPF PDF Viewer is represented by the red rectangle in the following figure.
- 
+ 
The client rectangle can be obtained by the [ClientRectangle](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ClientRectangle) property of the PDF Viewer.
@@ -32,7 +32,7 @@ Rectangle clientRectangle = pdfViewerControl.ClientRectangle;
PDF page coordinates are represented in terms of a device-independent coordinate system called user space, which is independent of the output device that will be used for printing or display. The user space coordinate system is initialized to its default state for each page of a PDF document. The length of a unit is 1/72 inches, which is approximately the same as a unit of **point(pt)**. As an example, the following figure shows the dimensions of a letter-sized paper in the PDF page coordinates with the WPF PDF Viewer.
- 
+ 
## Get and set the scroll coordinates
@@ -64,7 +64,7 @@ private void PdfViewerControl_PageClicked(object sender, PageClickedEventArgs e)
//Retrieve the clicked client area position
Point clientPoint = e.Position;
//Retrieve the page number that corresponds to the client point
- int pageNumber = pdfViewerControl.GetPageNumberFromClientPoint(clientPoint)
+ int pageNumber = pdfViewerControl.GetPageNumberFromClientPoint(clientPoint);
//Retrieve the page point
Point pagePoint = pdfViewerControl.ConvertClientPointToPagePoint(clientPoint, pageNumber);
@@ -99,7 +99,7 @@ private void PdfViewer_ShapeAnnotationChanged(object sender, ShapeAnnotationChan
## Convert PDF page coordinates to scroll coordinates
-The user can obtain the scroll coordinates using the [ConvertPagePointToScrollPoint](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ConvertPagePointToScrollingPoint_System_Windows_Point_System_Int32_) method by passing the page point and page number as input parameters. The following code example explains how to convert a shape annotation’s position in the page coordinates to a scroll point in the PDF Viewer.
+The user can obtain the scroll coordinates using the [ConvertPagePointToScrollPoint](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ConvertPagePointToScrollPoint_System_Windows_Point_System_Int32_) method by passing the page point and page number as input parameters. The following code example explains how to convert a shape annotation's position in the page coordinates to a scroll point in the PDF Viewer.
{% tabs %}
{% highlight c# %}
@@ -128,13 +128,13 @@ The user can bring the given rectangular region into view and zoom in to the doc
{% tabs %}
{% highlight c# %}
-//Create a bound with respect to client area
-Rect bounds = new Rect(400 , 300, 200, 400)
-//Pass the converted rectangle in client coordinates to the ZoomToRect method.
+//Create a bound with respect to page coordinates
+Rect bounds = new Rect(400 , 300, 200, 400);
+//Pass the converted rectangle in page coordinates to the ZoomToRect method.
pdfViewerControl.ZoomToRect(bounds);
{% endhighlight %}
{% endtabs %}
-N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
\ No newline at end of file
+N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the PDF viewer.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Export-and-Import-Annotations.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Export-and-Import-Annotations.md
index b16472a257..9102284dbc 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Export-and-Import-Annotations.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Export-and-Import-Annotations.md
@@ -18,12 +18,12 @@ The required data format can be chosen from the [AnnotationDataFormat](https://h
## Exporting annotations
-The ExportAnnotations method exports the annotations added in the document to a file or stream in specified file format. The annotation data format should be given as an arguments.
+The ExportAnnotations method exports the annotations added in the document to a file or stream in specified file format. The annotation data format should be given as an argument.
{% tabs %}
{% highlight C# %}
-//Export annotations to "fdf" data format to file
-pdfViewer.ExportAnnotations("Annotation.fdf ", AnnotationDataFormat.fdf);
+//Export annotations to "fdf" data format to file
+pdfViewer.ExportAnnotations("Annotation.fdf", AnnotationDataFormat.fdf);
//Export annotations to "fdf" data format to stream
Stream stream = new MemoryStream();
@@ -34,7 +34,7 @@ pdfViewer.ExportAnnotations(stream, AnnotationDataFormat.fdf);
## Importing annotations
-The ImportAnnotations method imports the annotations from the file or file stream of a specified type and fills the annotations into the loaded PDF document. The full path of file or file stream contains the annotation information. The annotation data format should be given as the arguments.
+The ImportAnnotations method imports the annotations from the file or file stream of a specified type and fills the annotations into the loaded PDF document. The full path of the file or file stream that contains the annotation information should be provided. The annotation data format should be given as the argument.
{% tabs %}
{% highlight C# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/File-Link-Annotation.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/File-Link-Annotation.md
index 4f0b4e43a6..b3a9418e03 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/File-Link-Annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/File-Link-Annotation.md
@@ -11,7 +11,7 @@ documentation: ug
The PDF viewer supports file link annotations, which means that if you open a PDF document that contains file link annotations, you can click them to get the details of file linked with the annotation, through its clicked event. You can open the file externally from the application, using the details of the file obtained from the event.
-## How to obtain the details of the of the annotation and the file linked with the annotation?
+## How to obtain the details of the annotation and the file linked with the annotation?
The [FileLinkAnnotationClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FileLinkAnnotationClicked) event will be raised when you click the annotation in PDF pages. Refer to the following code example to wire the `FileLinkAnnotationClicked` event with the PDF Viewer.
@@ -25,7 +25,7 @@ pdfViewer.FileLinkAnnotationClicked += PdfViewer_FileLinkAnnotationClicked;
Using the [FileLinkAnnotationClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html) you can obtain the page number, bounds of the annotation through the [PageNumber](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FileLinkAnnotationClickedEventArgs_PageNumber) and [Bounds](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FileLinkAnnotationClickedEventArgs_Bounds) properties respectively.
-Similarly, you can obtain the details of the file linked with the annotation using the [Settings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FileLinkAnnotationClickedEventArgs_Settings) property in the [FileLinkAnnotationClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html). Refer to the following code example to obtain the details of the of the annotation and the file linked with the annotation
+Similarly, you can obtain the details of the file linked with the annotation using the [Settings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FileLinkAnnotationClickedEventArgs_Settings) property in the [FileLinkAnnotationClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FileLinkAnnotationClickedEventArgs.html). Refer to the following code example to obtain the details of the annotation and the file linked with the annotation
{% tabs %}
{% highlight C# %}
@@ -58,4 +58,4 @@ private void PdfViewer_FileLinkAnnotationClicked(object sender, FileLinkAnnotati
{% endtabs %}
-N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
\ No newline at end of file
+N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the PDF Viewer.
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Highlight-Annotation.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Highlight-Annotation.md
index 48e2b02409..dba450211b 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Highlight-Annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Highlight-Annotation.md
@@ -11,13 +11,13 @@ documentation: ug
The WPF PDF Viewer allows the user to highlight text in PDF files and provides options to edit or remove the existing highlights. The highlight inclusion mode can be enabled via the toolbar UI or the API. Once the highlight inclusion mode is activated, you can highlight the required text by selecting it. To select the text, hold down the left mouse button and drag the mouse pointer over the text.
-To enable the mode from UI, click the below icon in the default toolbar of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
+To enable the mode from the UI, click the below icon in the default toolbar of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).

N> From version 19.4.0.48, we have updated our default text extraction engine to PDFium for extracting text information from PDF documents. Based on the text information, we create text markup annotations in the PDF documents. Please refer to the [link](https://help.syncfusion.com/wpf/pdf-viewer/text-extraction-engines) for more details.
-If you are using [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) control, or your own toolbar, or if you want enable the mode programmatically, change the [AnnotationMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_AnnotationMode) property of PDF Viewer to **Highlight**, as shown in the below code example.
+If you are using [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) control, or your own toolbar, or if you want to enable the mode programmatically, change the [AnnotationMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_AnnotationMode) property of PDF Viewer to **Highlight**, as shown in the below code example.
{% tabs %}
{% highlight C# %}
@@ -114,7 +114,7 @@ End Sub
## Working with included/existing highlight annotations
-Highlight annotation supports adding notes along with it, also it allows editing its color and opacity. To use these options, select the included/existing highlight annotation and click right using mouse, over the selected annotation, a pop up context menu will appear with the following options,
+Highlight annotation supports adding notes along with it, also it allows editing its color and opacity. To use these options, select the included/existing highlight annotation and right-click using the mouse, over the selected annotation, a pop up context menu will appear with the following options,
* Open Pop-up note
* Properties
@@ -122,13 +122,13 @@ Highlight annotation supports adding notes along with it, also it allows editing
### Open Pop-up notes
-We can add notes to the highlight annotation choosing Open Pop-up note option from the context menu. The following image illustrates the notes added to the selected highlight annotation. The added notes will be saved along with the PDF document and if there is any existing notes, it will be displayed in here.
+We can add notes to the highlight annotation choosing Open Pop-up note option from the context menu. The following image illustrates the notes added to the selected highlight annotation. The added notes will be saved along with the PDF document and if there are any existing notes, they will be displayed here.

### Properties
-Selecting properties from the context menu will display the Highlight Properties window, which would consist of two tabs
+Selecting Properties from the context menu will display the Highlight Properties window, which would consist of two tabs
* Appearance
* General
@@ -139,7 +139,7 @@ The color and opacity of the highlight annotation can be edited using Appearance
##### Editing color of the annotation
-The color of the selected highlight annotation will be displayed in the color row in the appearance tab. Selecting the Color would displays the color palette control, choosing a color from the color palette and clicking OK will apply the color to the highlight annotation.
+The color of the selected highlight annotation will be displayed in the color row in the appearance tab. Selecting the Color will display the color palette, choosing a color from the color palette and clicking OK will apply the color to the highlight annotation.
The following image illustrates how to change the color of the highlight annotation included.
@@ -151,7 +151,7 @@ The following image illustrates the change in the color of the included highligh
##### Editing opacity of the annotation
-The slider displayed in the Appearance tab will allow us to modify the opacity of the selected highlight annotation. You can also modify the opacity of the selected highlight annotation by giving numeric value in the opacity text box.
+The slider displayed in the Appearance tab allows you to modify the opacity of the selected highlight annotation. You can also modify the opacity by entering a numeric value in the opacity text box.
The following image illustrates how to change the opacity of the included highlight annotation.
@@ -171,7 +171,7 @@ The following image illustrates the change in Author and Subject of the included
### Deleting an annotation
-Selecting delete option from the context menu which will be displayed by right click on the selected annotation would delete the respective annotation from the PDF document.
+Selecting the Delete option from the context menu displayed by right-clicking on the selected annotation would delete the respective annotation from the PDF document.
The following image illustrates how to delete the included annotation from the PDF document.
@@ -186,15 +186,9 @@ The following code shows how to wire and handle the event, and also how to chang
{% tabs %}
{% highlight C# %}
-//wire the text markup changed event.
+//Wire the text markup changed event.
pdfViewer.TextMarkupAnnotationChanged += PdfViewer_TextMarkupAnnotationChanged;
-{% endhighlight %}
-{% endtabs %}
-
-{% tabs %}
-{% highlight C# %}
-
private void PdfViewer_TextMarkupAnnotationChanged(object sender, TextMarkupAnnotationChangedEventArgs e)
{
//Get the action performed on the annotation
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Ink-Annotation.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Ink-Annotation.md
index 716d933d86..07c56f04de 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Ink-Annotation.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Ink-Annotation.md
@@ -9,7 +9,7 @@ documentation: ug
# Ink Annotation in WPF Pdf Viewer
-PDF viewer WPF allows the user to include ink annotation in the PDF document and provides options to edit or remove the existing ink annotation in the PDF document.
+WPF PDF Viewer allows the user to include ink annotation in the PDF document and provides options to edit or remove the existing ink annotation in the PDF document.
The following code shows how to switch to ink annotation mode in code behind.
@@ -121,7 +121,7 @@ End Sub
## How to set the author and subject of the ink annotation?
-The author and subject fields of the ink annotation can be added for the ink annotation to be added to the PDF document. The follow code shows how to set the author and subject field of the ink annotation to be included.
+The author and subject fields of the ink annotation can be added for the ink annotation to be added to the PDF document. The following code shows how to set the author and subject field of the ink annotation to be included.
{% tabs %}
{% highlight C# %}
@@ -149,7 +149,7 @@ End Sub
## Working with included/existing ink annotations
-Ink annotation supports adding notes along with it, also it allows editing its color, opacity and thickness. To use these options, select the included/existing ink annotation and click right using mouse, over the selected annotation, a pop up context menu will appear with the following options,
+Ink annotation supports adding notes along with it, also it allows editing its color, opacity and thickness. To use these options, select the included/existing ink annotation and right-click using the mouse, over the selected annotation, a pop-up context menu will appear with the following options,
* Open Pop-up note
* Properties
@@ -157,7 +157,7 @@ Ink annotation supports adding notes along with it, also it allows editing its c
### Open Pop-up notes
-We can add notes to the ink annotation choosing Open Pop-up note option from the context menu. The following image illustrates the notes added to the selected ink annotation. The added notes will be saved along with the PDF document and if there is any existing notes, it will be displayed in here.
+We can add notes to the ink annotation choosing Open Pop-up note option from the context menu. The following image illustrates the notes added to the selected ink annotation. The added notes will be saved along with the PDF document and if there are any existing notes, it will be displayed in here.

@@ -166,7 +166,7 @@ We can add notes to the ink annotation choosing Open Pop-up note option from the
Selecting properties from the context menu will display the Ink Properties window, which would consist of two tabs
* Appearance
-* General
+* General
### Appearance tab
@@ -184,9 +184,9 @@ The following image illustrates the change in thickness of the selected ink anno

-#### Editing color of the annotation
+#### Editing the color of the ink annotation
-The color of the selected ink annotation will be displayed in the color row in the appearance tab. Selecting the Color would displays the color palette control, choosing a color from the color palette and clicking OK will apply the color to the ink annotation.
+The color of the selected ink annotation will be displayed in the color row in the appearance tab. Selecting the Color displays the color palette control, choosing a color from the color palette and clicking OK will apply the color to the ink annotation.
The following image illustrates how to change the color of the ink annotation included.
@@ -196,7 +196,7 @@ The following image illustrates the change in the color of the ink annotation.

-#### Editing opacity of the annotation
+#### Editing the opacity of the ink annotation
The slider control displayed in the Appearance tab will allow us to modify the opacity of the selected ink annotation. You can also modify the opacity of the selected ink annotation by giving numeric value in the opacity text box.
@@ -246,17 +246,19 @@ N> This tool can be used to erase the ink annotation only and not applicable for
## Events
-The [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) notifies through events, when [AnnotationChangedAction](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationChangedAction.html) such us adding, deleting, select, deselect, moving and resizing made in annotations. It also provides the annotations common information such as annotation name, page index, bounds and action type performed in respective annotation.
+The [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) notifies through events, when [AnnotationChangedAction](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationChangedAction.html) such as adding, deleting, select, deselect, moving and resizing made in annotations. It also provides the annotations common information such as annotation name, page index, bounds and action type performed in respective annotation.
### InkAnnotationChanged Event
The [InkAnnotationChanged](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_InkAnnotationChanged) event occurs when the [Action](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationChangedEventArgs.html#Syncfusion_Windows_PdfViewer_AnnotationChangedEventArgs_Action) performed in ink annotation. It provides the common information and annotation properties which are available in `Settings` through the [InkAnnotationChangedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.InkAnnotationChangedEventArgs.html). The user can modify the annotation properties through [Settings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.InkAnnotationChangedEventArgs.html#Syncfusion_Windows_PdfViewer_InkAnnotationChangedEventArgs_Settings).
-The following code shows how to write the `InkAnnotationChanged` event in `PdfViewerControl`
+The following code shows how to subscribe and write the `InkAnnotationChanged` event in `PdfViewerControl`.
{% tabs %}
{% highlight C# %}
+pdfviewer.InkAnnotationChanged += PdfViewer_InkAnnotationChanged;
+
private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedEventArgs e)
{
//COMMON PROPERTIES
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotation-Comments.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotation-Comments.md
index 8177fdaf9c..fd5ab4d6b3 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotation-Comments.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotation-Comments.md
@@ -9,7 +9,7 @@ documentation: ug
# Working with annotation comments
-PDF viewer provides options to add, edit, and delete the comments to the following annotation in the PDF documents:
+PDF viewer provides options to add, edit, and delete the comments for the following annotations in the PDF documents:
* Ink.
* Text markups (Highlight, Underline, Squiggly and Strikethrough).
@@ -28,7 +28,7 @@ Refer to the following code example to expand the comments pane.
{% tabs %}
{% highlight c# %}
-Private void button_Click(object sender,RoutedEventArgs e)
+private void button_Click(object sender,RoutedEventArgs e)
{
//expand the comments pane
pdfViewer.CommentSettings.IsExpanded = true;
@@ -55,7 +55,7 @@ Refer to the following code example to hide the comments button in the annotatio
{% tabs %}
{% highlight c# %}
-Private void button_Click(object sender,RoutedEventArgs e)
+private void button_Click(object sender,RoutedEventArgs e)
{
//hide the comments button in the annotation toolbar
pdfViewer.CommentSettings.IsVisible = false;
@@ -74,7 +74,7 @@ End Sub
## Adding a comment to the annotation
-Annotation comment, comment replies, and status can be added to the PDF document using the comment panel.
+Annotation comments, comment replies, and status can be added to the PDF document using the comment panel.
### Adding comments
@@ -90,20 +90,20 @@ Annotation comments can be added to the PDF using the comment panel. If the comm
### Adding Comment or Reply Status
* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
+* Click the More options button shown in the Comments or reply container.
* Select the Set Status option in the context menu that appears.
* Select the status of the annotation comment in the context menu that appears.

-## Editing the comments and comments replies of the annotations
+## Editing the comments and comment replies of the annotations
The comment, comment replies, and status of the annotation can be edited using the comment panel.
### Editing the Comment or Comment Replies
* Select the Annotation Comments in the comment panel.
-* Click the More options button showing in the Comments or reply container.
+* Click the More options button shown in the Comments or reply container.
* Select the Edit option in the context menu that appears.
* Now, an editable text box appears. You can change the content of the annotation comment or comment reply.
@@ -112,15 +112,15 @@ The comment, comment replies, and status of the annotation can be edited using t
### Editing Comment or Reply Status
* Select the Annotation Comments in the comment panel.
-* Click the more options button showing in the Comments or reply container.
+* Click the More options button shown in the Comments or reply container.
* Select the Set Status option in the context menu that appears.
* Select the status of the annotation comment in the context menu that appears.
-* Status ‘None’ is the default state. If the status is set to ‘None,’ the comments or reply does not appear.
+* Status ‘None’ is the default state. If the status is set to ‘None,’ the comments or replies do not appear.
### Delete Comment or Comment Replies
* Select the Annotation Comments in the comment panel.
-* Click the more options button shown in the Comments or reply container.
+* Click the More options button shown in the Comments or reply container.
* Select the Delete option in the context menu that appears.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotations-Programmatically.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotations-Programmatically.md
index d510df1dd3..5bca1add0b 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotations-Programmatically.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Annotations/Working-with-Annotations-Programmatically.md
@@ -10,7 +10,7 @@ documentation: ug
# Working with annotations programmatically
## Add an annotation
-The PDF Viewer allows users to add annotations programmatically without user interaction. Annotations can be added to the PDF document using the [PdfViewerControl’s loadedDocument](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument) property in the code behind.
+The PDF Viewer allows users to add annotations programmatically without user interaction. Annotations can be added to the PDF document using the [PdfViewerControl's loadedDocument](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument) property in the code behind.
The following code snippet explains how to add an ink annotation at runtime to the PDF document.
@@ -38,8 +38,7 @@ private void AddAnnotation()
{% highlight VB %}
'Adding ink annotation at runtime to the PDF document.
-private void AddAnnotation()
-{
+Private Sub AddAnnotation()
'Get the instance of the loadedDocument from the PdfViewerControl.
Dim loadedDocument As PdfLoadedDocument = pdfViewer.LoadedDocument
@@ -52,7 +51,7 @@ private void AddAnnotation()
'Add the ink annotation to the desired page of the PdfLoadedDocument property instance.
loadedDocument.Pages(0).Annotations.Add(inkAnnotation)
-}
+End Sub
{% endhighlight %}
{% endtabs %}
@@ -62,14 +61,14 @@ PDF Viewer allows the users to select the annotation programmatically without us
### Select an annotation in the PDF file
-PDF Viewer allows the users to select the annotation programmatically using [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_) method. The annotation’s name should pass as a parameter that needs to be selected.
+PDF Viewer allows the users to select the annotation programmatically using [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_) method. The annotation's name should be passed as a parameter that needs to be selected.
The following code snippet explains how to select an ink annotation using the annotation name.
{% tabs %}
{% highlight C# %}
-//Selecting ink annotation with annotation’s name
+//Selecting ink annotation with annotation's name
private void SelectAnnotation()
{
bool isSelected = pdfViewer.SelectAnnotation(inkAnnotationName);
@@ -80,9 +79,9 @@ private void SelectAnnotation()
N> Similarly, we can implement it for all other annotations.
-### Select an annotations at specific page
+### Select an annotation at a specific page
-PDF Viewer also allows the users to select the annotation programmatically using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Int32_) method with specified the page number on which the annotation is located. The annotation’s name and its page number should pass as a parameter that needs to be selected.
+PDF Viewer also allows the users to select the annotation programmatically using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Int32_) method with a specified page number on which the annotation is located. The annotation's name and its page number should be passed as a parameter that needs to be selected.
N> For better performance, we can use the method [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Int32_) with page number overload.
@@ -91,7 +90,7 @@ The following code snippet explains how to select an ink annotation on the first
{% tabs %}
{% highlight C# %}
-//Selecting ink annotation from page 1 with the annotation’s name
+//Selecting ink annotation from page 1 with the annotation's name
private void SelectAnnotation()
{
bool isSelected = pdfViewer.SelectAnnotation(inkAnnotationName, 1);
@@ -104,14 +103,14 @@ N> Similarly, we can implement it for all other annotations.
### Select an annotation in the PDF file and bring it into view
-PDF Viewer also allows the user to select and bring an annotation to view programmatically using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Boolean_) method with `BringIntoView` Parameter. The annotation’s name and true value for `BringIntoView` should be passed as a parameter to select and bring an annotation into view.
+PDF Viewer also allows the user to select and bring an annotation to view programmatically using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Boolean_) method with `BringIntoView` Parameter. The annotation's name and true value for `BringIntoView` should be passed as a parameter to select and bring an annotation into view.
The following code snippet explains how to select an ink annotation using the annotation name and bring them into view.
{% tabs %}
{% highlight C# %}
-//Selecting ink annotation with the annotation’s name and bring them into view
+//Selecting ink annotation with the annotation's name and bring them into view
private void SelectAnnotation()
{
bool isSelected = pdfViewer.SelectAnnotation(inkAnnotationName, true);
@@ -122,16 +121,16 @@ private void SelectAnnotation()
N> Similarly, we can implement it for all other annotations.
-### Select an annotation at specific page and bring it into view
+### Select an annotation at a specific page and bring it into view
-PDF Viewer also allows the user to select the annotation programmatically and bring it into view using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Int32_System_Boolean_) method, specifying the page number on which the annotation is located. The annotation’s name, its page number and its “true” value for `BringIntoView` should be passed as a parameter that needs to be selected.
+PDF Viewer also allows the user to select the annotation programmatically and bring it into view using overload [SelectAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_SelectAnnotation_System_String_System_Int32_System_Boolean_) method, specifying the page number on which the annotation is located. The annotation's name, its page number and its "true" value for `BringIntoView` should be passed as a parameter that needs to be selected.
The following code snippet explains how to select an ink annotation on the first page of the document using the annotation name and bring it into view.
{% tabs %}
{% highlight C# %}
-//Selecting ink annotation from page 1 with the annotation’s name and bringing into view parameter
+//Selecting ink annotation from page 1 with the annotation's name and bringing into view parameter
private void SelectAnnotation()
{
bool isSelected = pdfViewer.SelectAnnotation(inkAnnotationName, 1, true);
@@ -142,20 +141,20 @@ private void SelectAnnotation()
N> Similarly, we can implement it for all other annotations.
-N> To bring an annotation into view we need to pass a “true” value for the BringIntoView parameter, providing a “false” value will only select the annotation.
+N> To bring an annotation into view we need to pass a "true" value for the BringIntoView parameter, providing a "false" value will only select the annotation.
### How to get and set name of an annotation
-Annotation’s name can be obtained either for newly added annotation or the annotation that already exist. Also, you can modify the [Name](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationChangedEventArgs.html#Syncfusion_Windows_PdfViewer_AnnotationChangedEventArgs_Name) property to give annotations a unique name. In the following sections, the ink annotation was explained brevity and similarly, you can get and set names for all other annotations.
+Annotation's name can be obtained either for newly added annotation or the annotation that already exist. Also, you can modify the [Name](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationChangedEventArgs.html#Syncfusion_Windows_PdfViewer_AnnotationChangedEventArgs_Name) property to give annotations a unique name. In the following sections, the ink annotation is explained briefly and similarly, you can get and set names for all other annotations.
-#### Get and Set Annotations’ Name
+#### Get and Set Annotations' Name
-The annotations’ name can be obtained from the annotation changed event. The following code sample explains how to get the annotations’ name when adding it to the document.
+The annotations' name can be obtained from the annotation changed event. The following code sample explains how to get the annotations' name when adding it to the document.
{% tabs %}
{% highlight C# %}
-//Getting annotation’s name while adding the annotation
+//Getting annotation's name while adding the annotation
private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedEventArgs e)
{
if (e.Action == AnnotationChangedAction.Add)
@@ -174,7 +173,7 @@ You can also change the name of an annotation. The following code sample demonst
//Set the annotation name
private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedEventArgs e)
{
- e.Name = ”YOUR OWN NAME”;
+ e.Name = "YOUR OWN NAME";
}
{% endhighlight %}
@@ -183,13 +182,13 @@ private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedE
N> The annotation name must be unique. If there are multiple annotations with the same name in the document, any functions based on the name will only affect the first one identified.
-#### Getting annotation’s name for existing annotation
+#### Getting annotation's name for existing annotation
-The existing annotation’s name can be obtained from [LoadedDocument]( https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument). The following code snippet explains how to get the existing annotation’s name.
+The existing annotation's name can be obtained from [LoadedDocument]( https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument). The following code snippet explains how to get the existing annotation's name.
{% tabs %}
{% highlight C# %}
-//Getting existing annotation’s name
+//Getting existing annotation's name
private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
{
PdfLoadedDocument loadedDocument = pdfViewer.LoadedDocument;
@@ -204,14 +203,14 @@ private void PdfViewer_DocumentLoaded(object sender, EventArgs args)
The PDF Viewer allows users to modify annotations programmatically without user interaction in the following ways.
### Modify an annotation using annotation changed event settings
-Annotation’s properties can be modified programmatically through `Settings` in respective annotation changed event.
+Annotation's properties can be modified programmatically through `Settings` in respective annotation changed event.
-The following code snippet explains how to modify the selected ink annotation’s properties. Similarly, we can implement for all other annotations.
+The following code snippet explains how to modify the selected ink annotation's properties. Similarly, we can implement for all other annotations.
{% tabs %}
{% highlight C# %}
-//Modifying the selected annotation’s properties.
+//Modifying the selected annotation's properties.
private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedEventArgs e)
{
if (e.Action == AnnotationChangedAction.Select)
@@ -228,7 +227,7 @@ private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedE
### Modify an annotation using loadedDocument
-Annotations can be modified in the PDF document using the [PdfViewerControl’s loadedDocument](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument) property in the code behind.
+Annotations can be modified in the PDF document using the [PdfViewerControl's loadedDocument](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_LoadedDocument) property in the code behind.
The following code snippet demonstrates how to modify an ink annotation at runtime.
@@ -253,8 +252,7 @@ private void ModifyAnnotation()
{% highlight VB %}
'Modify the ink annotation in the PDF Viewer runtime.
-private void ModifyAnnotation()
-{
+Private Sub ModifyAnnotation()
'Get the instance of the loadedDocument from the PdfViewerControl.
Dim loadedDocument As PdfLoadedDocument = pdfViewer.LoadedDocument
Dim inkAnnotation As PdfInkAnnotation = Nothing
@@ -264,7 +262,7 @@ private void ModifyAnnotation()
'Modify the color of the ink annotation.
inkAnnotation.Color = New PdfColor(System.Drawing.Color.Blue)
End If
-}
+End Sub
{% endhighlight %}
{% endtabs %}
@@ -283,7 +281,7 @@ The following code snippet explains how to hide an ink annotation using the anno
{% tabs %}
{% highlight C# %}
-//Hide ink annotation using annotation’s name
+//Hide ink annotation using annotation's name
private void HideAnnotation()
{
bool isHidden = pdfViewer.HideAnnotation(inkAnnotationName);
@@ -294,7 +292,7 @@ private void HideAnnotation()
N> Similarly, we can implement it for all other annotations.
-### Hide an annotation at specific page
+### Hide an annotation at a specific page
PDF Viewer also allows the user to hide the annotation from a specific page programmatically using the overload [HideAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_HideAnnotation_System_String_System_Int32_) method with a specified page number on which the annotation is located. The annotation name and its page number should be passed as a parameter that needs to be hidden.
@@ -305,7 +303,7 @@ The following code snippet explains how to hide an ink annotation on the first p
{% tabs %}
{% highlight C# %}
-//Hide ink annotation from page 1 with the annotation’s name
+//Hide ink annotation from page 1 with the annotation's name
private void HideAnnotation() { bool isHidden = pdfViewer.HideAnnotation(inkAnnotationName, 1); }
{% endhighlight %}
@@ -328,7 +326,7 @@ The following code snippet explains how to show a hidden ink annotation using th
{% tabs %}
{% highlight C# %}
-//Show ink annotation using annotation’s name
+//Show ink annotation using annotation's name
private void ShowAnnotation()
{
bool isShown = pdfViewer.ShowAnnotation(inkAnnotationName);
@@ -339,7 +337,7 @@ private void ShowAnnotation()
N> Similarly, we can implement it for all other annotations.
-### Show an annotation at specific page
+### Show an annotation at a specific page
PDF Viewer also allows the user to show the annotation from a specific page programmatically using the overload [ShowAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ShowAnnotation_System_String_System_Int32_) method with a specified page number on which the annotation is located. The annotation name and its page number should be passed as a parameter that needs to be shown.
@@ -350,7 +348,7 @@ The following code snippet explains how to show an ink annotation on the first p
{% tabs %}
{% highlight C# %}
-//Show ink annotation from page 1 with the annotation’s name
+//Show ink annotation from page 1 with the annotation's name
private void ShowAnnotation() { bool isShown = pdfViewer.ShowAnnotation(inkAnnotationName, 1); }
{% endhighlight %}
@@ -373,7 +371,7 @@ The following code snippet explains how to delete an ink annotation using the an
{% tabs %}
{% highlight C# %}
-//delete ink annotation using annotation’s name
+//delete ink annotation using annotation's name
private void DeleteAnnotation()
{
bool isDeleted = pdfViewer.DeleteAnnotation(inkAnnotationName);
@@ -384,7 +382,7 @@ private void DeleteAnnotation()
N> Similarly, we can implement it for all other annotations.
-### Delete an annotation at specific page
+### Delete an annotation at a specific page
PDF Viewer also allows the user to delete the annotation from a specific page programmatically using the overload [DeleteAnnotation](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_DeleteAnnotation_System_String_System_Int32_) method with a specified page number on which the annotation is located. The annotation name and its page number should be passed as a parameter that needs to be deleted.
@@ -395,7 +393,7 @@ The following code snippet explains how to delete an ink annotation on the first
{% tabs %}
{% highlight C# %}
-//Delete ink annotation from page 1 with the annotation’s name
+//Delete ink annotation from page 1 with the annotation's name
private void DeleteAnnotation() { bool isDeleted = pdfViewer.DeleteAnnotation(inkAnnotationName, 1); }
{% endhighlight %}
@@ -426,17 +424,15 @@ private void DeleteAnnotations()
{% highlight VB %}
'delete all annotations
-private void DeleteAnnotations()
-{
- pdfViewer.ClearAllAnnotations()
-}
-
+Private Sub DeleteAnnotations()
+ pdfViewer.ClearAllAnnotations()
+End Sub
{% endhighlight %}
{% endtabs %}
-### Delete all annotations at specific page
+### Delete all annotations at a specific page
-PDF Viewer also allows the user to delete all annotations from a specific page programmatically using the overload [ClearAllAnnotations](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ClearAllAnnotations_System_Int32_) method with a specified page number on which the annotations are located. The page number which we pass as a parameter, its annotations get deleted.
+PDF Viewer also allows the user to delete all annotations from a specific page programmatically using the overload [ClearAllAnnotations](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ClearAllAnnotations_System_Int32_) method with a specified page number on which the annotations are located. Annotations on the page specified by the parameter will be deleted.
The following code snippet explains how to delete all annotations on the first page of the PDF document.
@@ -453,11 +449,9 @@ private void DeleteAnnotation()
{% highlight VB %}
'delete all annotations from page 1
-private void DeleteAnnotations()
-{
- pdfViewer.ClearAllAnnotations(1)
-}
-
+Private Sub DeleteAnnotations()
+ pdfViewer.ClearAllAnnotations(1)
+End Sub
{% endhighlight %}
{% endtabs %}
@@ -467,7 +461,7 @@ PDF Viewer allows the user to update the [ModifiedDate](https://help.syncfusion.
### How to update the modified date of an annotation using default annotation settings?
-User can include a [ModifiedDate](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationSettings.html#Syncfusion_Windows_PdfViewer_AnnotationSettings_ModifiedDate) field when adding an annotation to a PDF document using default annotation settings.
+You can include a [ModifiedDate](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationSettings.html#Syncfusion_Windows_PdfViewer_AnnotationSettings_ModifiedDate) field when adding an annotation to a PDF document using default annotation settings.
The following code snippet explains how to set the modified date field of an ink annotation to be included. Similarly, we can implement it for all other annotations.
@@ -476,25 +470,24 @@ The following code snippet explains how to set the modified date field of an ink
private void Window_Loaded(object sender, RoutedEventArgs e)
{
- pdfviewer.Load("Input.pdf");
- pdfviewer.InkAnnotationSettings.ModifiedDate = new DateTime(2020, 12, 1, 1, 1, 1);
+ pdfViewer.Load("Input.pdf");
+ pdfViewer.InkAnnotationSettings.ModifiedDate = new DateTime(2020, 12, 1, 1, 1, 1);
}
{% endhighlight %}
{% highlight VB %}
-private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
-{
- pdfviewer.Load("Input.pdf")
- pdfviewer.InkAnnotationSettings.ModifiedDate = new DateTime(2020, 12, 1, 1, 1, 1)
-}
+Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
+ pdfViewer.Load("Input.pdf")
+ pdfViewer.InkAnnotationSettings.ModifiedDate = New DateTime(2020, 12, 1, 1, 1, 1)
+End Sub
{% endhighlight %}
{% endtabs %}
### How to update the modified date of an annotation using annotation changed event settings?
-User can include a [ModifiedDate](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationSettings.html#Syncfusion_Windows_PdfViewer_AnnotationSettings_ModifiedDate) field of an annotation to a PDF document using annotation changed event settings.
+You can include a [ModifiedDate](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.AnnotationSettings.html#Syncfusion_Windows_PdfViewer_AnnotationSettings_ModifiedDate) field of an annotation to a PDF document using annotation changed event settings.
The following code snippet explains how to set the modified date field of an ink annotation using ink annotation changed event settings. Similarly, we can implement it for all other annotations.
@@ -509,10 +502,9 @@ private void PdfViewer_InkAnnotationChanged(object sender, InkAnnotationChangedE
{% endhighlight %}
{% highlight VB %}
-private Sub PdfViewer_InkAnnotationChanged(sender As Object, e As InkAnnotationChangedEventArgs)
-{
- e.Settings.ModifiedDate = new DateTime(2023, 12, 1, 1, 1, 1)
-}
+Private Sub PdfViewer_InkAnnotationChanged(sender As Object, e As InkAnnotationChangedEventArgs)
+ e.Settings.ModifiedDate = New DateTime(2023, 12, 1, 1, 1, 1)
+End Sub
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Hyperlinks.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Hyperlinks.md
index e9c6337cfe..3f106ec95b 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Hyperlinks.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Hyperlinks.md
@@ -23,7 +23,7 @@ Arguments
HyperlinkMouseOver
This event is triggered when the mouse pointer is placed over the hyperlink.
-N/A
+HyperlinkMouseOverEventArgs
HyperlinkClicked
@@ -31,22 +31,29 @@ This event is triggered when the hyperlink in the PDF document is clicked.
<
HyperlinkClickedEventArgs
-N> From the version 19.3, The `HyperLinkClickedEventArgs` is renamed to [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html). Also, We recommend you to use [HyperlinkClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_HyperlinkClicked) and [HyperlinkMouseOver](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.HyperLinkMouseOverEventHandler.html) events to notify when the hyperlink is clicked and when mouse is over the hyperlink respectively as shown in the above table.
+N> From version 19.3, the `HyperlinkClickedEventArgs` is renamed to [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html). Also, we recommend you to use [HyperlinkClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_HyperlinkClicked) and [HyperlinkMouseOver](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.HyperLinkMouseOverEventHandler.html) events to notify when the hyperlink is clicked and when the mouse is over the hyperlink respectively as shown in the above table.
## How to disable hyperlink navigation in PDF viewer control
You can disable the hyperlink navigation in PDF viewer control by setting the value of [Handled](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_PdfViewer_HyperlinkClickedEventArgs_Handled) in the [HyperlinkClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html) parameter as true in the [HyperlinkClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_HyperlinkClicked) event which is available in the PdfViewerControl and PdfDocumentView class.
Please refer to the following example for more details.
-N> From the version 19.3, we have introduced [Handled](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_PdfViewer_HyperlinkClickedEventArgs_Handled) property in the event arguments to disable the hyperlink navigation based on the standards. You need to change its value to `true` to disable the navigation.
+N> From version 19.3, we have introduced [Handled](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_PdfViewer_HyperlinkClickedEventArgs_Handled) property in the event arguments to disable the hyperlink navigation based on the standards. You need to change its value to `true` to disable the navigation.
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.PdfViewer;
+
+// Initialize PDF Viewer.
+PdfViewerControl pdfViewerControl = new PdfViewerControl();
+// Load the PDF.
+pdfViewerControl.Load("Sample.pdf");
+
// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
-private void Pdfviewer_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
+private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
{
// Gets or sets the value to handle the navigation of hyperlink.
args.Handled = true;
@@ -57,19 +64,21 @@ private void Pdfviewer_HyperlinkClicked(object sender, Syncfusion.Windows.PdfVie
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkClicked` event
'Initialize PDF Viewer.
Private pdfViewerControl As New PdfViewerControl()
'Load the PDF.
pdfViewerControl.Load("Sample.pdf")
-AddHandler pdfviewer.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
-Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
-'Your code here...
+' Hooks the event handler for `HyperlinkClicked` event.
+AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
+
+Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs)
+ ' Gets or sets the value to handle the navigation of hyperlink.
+ args.Handled = True
End Sub
' Unhooks the event handler for `HyperlinkClicked` event.
-RemoveHandler pdfviewer.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
+RemoveHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
{% endhighlight %}
{% endtabs %}
@@ -83,25 +92,41 @@ Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.PdfViewer;
+
+// Initialize PDF Viewer.
+PdfViewerControl pdfViewerControl = new PdfViewerControl();
+// Load the PDF.
+pdfViewerControl.Load("Sample.pdf");
+
// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
-private void Pdfviewer_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
+private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
{
- //Returns the URI clicked in the PDF viewer control.
- string URI = args.Uri;
+ // Returns the URI clicked in the PDF viewer control.
+ string uri = args.Uri;
+ // Use the URI as needed; for example:
+ // System.Diagnostics.Debug.WriteLine(uri);
}
{% endhighlight %}
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkClicked` event
-AddHandler pdfviewer.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
+'Initialize PDF Viewer.
+Private pdfViewerControl As New PdfViewerControl()
+'Load the PDF.
+pdfViewerControl.Load("Sample.pdf")
-Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
-' Returns the URI clicked in the PDF viewer control.
-Dim uri As String = args.URI
+' Hooks the event handler for `HyperlinkClicked` event.
+AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
+
+Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs)
+ ' Returns the URI clicked in the PDF viewer control.
+ Dim uri As String = args.URI
+ ' Use the URI as needed; for example:
+ ' Console.WriteLine(uri)
End Sub
@@ -111,16 +136,23 @@ End Sub
## Redirecting to a different Hyperlink
-You can navigate to different hyperlink irrespective of the hyperlink clicked. To redirect a hyperlink, you need to set the value of [Handled](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_PdfViewer_HyperlinkClickedEventArgs_Handled) parameter as true to stop the navigation of the hyperlink clicked. Then open the desired hyperlink that you want to navigate instead of the hyperlink clicked.
+You can navigate to a different hyperlink irrespective of the hyperlink clicked. To redirect a hyperlink, you need to set the value of [Handled](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs.html#Syncfusion_Windows_PdfViewer_HyperlinkClickedEventArgs_Handled) parameter as true to stop the navigation of the hyperlink clicked. Then open the desired hyperlink that you want to navigate instead of the hyperlink clicked.
Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.PdfViewer;
+
+// Initialize PDF Viewer.
+PdfViewerControl pdfViewerControl = new PdfViewerControl();
+// Load the PDF.
+pdfViewerControl.Load("Sample.pdf");
+
// Wires the event handler for `HyperlinkClicked` event.
pdfViewerControl.HyperlinkClicked += PdfViewerControl_HyperlinkClicked;
-private void Pdfviewer_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
+private void PdfViewerControl_HyperlinkClicked(object sender, Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs args)
{
// Gets or sets the value to handle the navigation of hyperlink.
args.Handled = true;
@@ -133,12 +165,19 @@ private void Pdfviewer_HyperlinkClicked(object sender, Syncfusion.Windows.PdfVie
{% highlight vbnet %}
+'Initialize PDF Viewer.
+Private pdfViewerControl As New PdfViewerControl()
+'Load the PDF.
+pdfViewerControl.Load("Sample.pdf")
+
' Hooks the event handler for `HyperlinkClicked` event.
-AddHandler pdfviewer.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
+AddHandler pdfViewerControl.HyperlinkClicked, AddressOf PdfViewerControl_HyperlinkClicked
-Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
-' Opens the URI (www.google.com) in a default browser.
-System.Diagnostics.Process.Start("www.google.com")
+Private Sub PdfViewerControl_HyperlinkClicked(obj As Object, args As Syncfusion.Windows.PdfViewer.HyperlinkClickedEventArgs)
+ ' Gets or sets the value to handle the navigation of hyperlink.
+ args.Handled = True
+ ' Opens the URI (www.google.com) in a default browser.
+ System.Diagnostics.Process.Start("www.google.com")
End Sub
@@ -146,38 +185,50 @@ End Sub
{% endtabs %}
-## How to get notified when a mouse pointer moves over a hyperlink
+## How to get notified when a mouse pointer moves over a hyperlink
[HyperlinkMouseOver](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.HyperLinkMouseOverEventHandler.html) event is triggered when you place the mouse pointer over the URI in the PDF viewer control.
- Please refer to the following example for more details.
+Please refer to the following example for more details.
{% tabs %}
{% highlight c# %}
-// Wire the event handler for `HyperlinkMouseOver` event.
+using Syncfusion.Windows.PdfViewer;
+
+// Initialize PDF Viewer.
+PdfViewerControl pdfViewerControl = new PdfViewerControl();
+// Load the PDF.
+pdfViewerControl.Load("Sample.pdf");
+
+// Wires the event handler for `HyperlinkMouseOver` event.
pdfViewerControl.HyperlinkMouseOver += PdfViewerControl_HyperlinkMouseOver;
-private void Pdfviewer_HyperlinkMouseOver(object sender, EventArgs args)
+private void PdfViewerControl_HyperlinkMouseOver(object sender, Syncfusion.Windows.PdfViewer.HyperlinkMouseOverEventArgs args)
{
//Your code here
}
-// Unwire the event handler for `HyperlinkMouseOver` event.
+// Unwires the event handler for `HyperlinkMouseOver` event.
pdfViewerControl.HyperlinkMouseOver -= PdfViewerControl_HyperlinkMouseOver;
{% endhighlight %}
{% highlight vbnet %}
-' Hooks the event handler for `HyperlinkMouseOver` event
-AddHandler pdfviewer.HyperlinkMouseOver, AddressOf PdfViewerControl_HyperlinkMouseOver
+'Initialize PDF Viewer.
+Private pdfViewerControl As New PdfViewerControl()
+'Load the PDF.
+pdfViewerControl.Load("Sample.pdf")
-Private Sub PdfViewerControl_HyperlinkMouseOver(obj As Object, args As Syncfusion.Windows.PdfViewer.AnnotEventArgs)
+' Hooks the event handler for `HyperlinkMouseOver` event.
+AddHandler pdfViewerControl.HyperlinkMouseOver, AddressOf PdfViewerControl_HyperlinkMouseOver
+Private Sub PdfViewerControl_HyperlinkMouseOver(obj As Object, args As Syncfusion.Windows.PdfViewer.HyperlinkMouseOverEventArgs)
+ 'Your code here
End Sub
' Unhooks the event handler for `HyperlinkMouseOver` event.
-RemoveHandler pdfviewer.HyperlinkMouseOver, AddressOf PdfViewerControl_HyperlinkMouseOver
+RemoveHandler pdfViewerControl.HyperlinkMouseOver, AddressOf PdfViewerControl_HyperlinkMouseOver
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-PDF-Layers.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-PDF-Layers.md
index dc42ceaa13..736909dc05 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-PDF-Layers.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-PDF-Layers.md
@@ -9,7 +9,7 @@ documentation: UG
# Working with PDF Layers in WPF Pdf Viewer
-The layer support in PDF viewer allows users to toggle the visibility of individual and group of layers in the PDF document to view, print, save, and export as image.
+The layer support in the PDF Viewer allows users to toggle the visibility of individual layers and groups of layers in the PDF document to view, print, save, and export them as images.
## Toggling the visibility of a PDF layer
@@ -25,7 +25,7 @@ To toggle the visibility of a group of PDF layers, click the eye icon associated
## Programmatically Toggle the Visibility of a PDF Layer
-The WPF PDFViewer allows the user to toggle the visibility of a PDF [Layer](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html) using its [IsVisible](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html#Syncfusion_Windows_PdfViewer_Layer_IsVisible) property. When this property is set to false, the layer becomes invisible, and when this property is set to true, the layer becomes visible. The following code sample explains how to use the [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) to retrieve the [Layers](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_Layers) collection and use the [Name](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html#Syncfusion_Windows_PdfViewer_Layer_Name) of a PDF layer to toggle its visibility.
+The WPF PDF Viewer allows the user to toggle the visibility of a PDF [Layer](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html) using its [IsVisible](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html#Syncfusion_Windows_PdfViewer_Layer_IsVisible) property. When this property is set to false, the layer becomes invisible, and when this property is set to true, the layer becomes visible. The following code sample explains how to use the [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) to retrieve the [Layers](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_Layers) collection and use the [Name](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.Layer.html#Syncfusion_Windows_PdfViewer_Layer_Name) of a PDF layer to toggle its visibility.
{% tabs %}
{% highlight C# %}
@@ -93,7 +93,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
Dim pdf As New PdfLoadedDocument("PdfLayers.pdf")
pdfViewer.Load(pdf)
- pdfViewer.EnableLayers = false;
+ pdfViewer.EnableLayers = False
End Sub
{% endhighlight %}
@@ -109,7 +109,7 @@ You can also achieve the same in XAML using the DependencyProperty illustrated a
{% endhighlight %}
-N> By default, the layer feature is enabled in PDF viewer.
+N> By default, the layer feature is enabled in the PDF Viewer.
-N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
\ No newline at end of file
+N> You can refer to our [WPF PDF Viewer](https://www.syncfusion.com/wpf-controls/pdf-viewer) feature tour page for its groundbreaking feature representations. You can also explore our [WPF PDF Viewer example](https://github.com/syncfusion/wpf-demos) to know how to render and configure the pdfviewer.
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Thumbnail-Navigation.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Thumbnail-Navigation.md
index d14e329e37..1338242c06 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Thumbnail-Navigation.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-Thumbnail-Navigation.md
@@ -1,15 +1,15 @@
---
layout: post
-title: Thumbnail Navigation in WPF Pdf Viewer control | Syncfusion®;
-description: Learn about Thumbnail Navigation support in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+title: Thumbnail Navigation in WPF Pdf Viewer control | Syncfusion®
+description: Learn about Thumbnail Navigation support in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
---
-# Thumbnail Navigation in WPF Pdf Viewer
+# Thumbnail Navigation in WPF PDF Viewer
-The thumbnail navigation support in PDF viewer allows users to view a miniature preview of the PDF pages for fast scrolling and easy navigation purpose.
+The thumbnail navigation support in PDF viewer allows users to view a miniature preview of the PDF pages for fast scrolling and easy navigation.

@@ -33,7 +33,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
pdfviewer.ThumbnailSettings.IsExpanded = true
End Sub
@@ -67,7 +67,7 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
{% highlight vbnet %}
Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs)
- Dim pdf As New PdfLoadedDocument(“Input.pdf”)
+ Dim pdf As New PdfLoadedDocument("Input.pdf")
pdfViewer.Load(pdf)
pdfviewer.ThumbnailSettings.IsVisible = false
End Sub
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-command-binding/Binding-commands-to-a-button.md b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-command-binding/Binding-commands-to-a-button.md
index 215e41c005..3f1ecaee1f 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-command-binding/Binding-commands-to-a-button.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/Working-with-command-binding/Binding-commands-to-a-button.md
@@ -100,14 +100,14 @@ GoToPageCommand allows you to navigate through the pages of the PDF document. Th
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
N>
* If the command parameter is some other text or invalid page number, the GoToPageCommand does not have any effect.
-## Page Rotation commands
+## Page Rotation Commands
The below list of commands helps to rotate the specific pages in a PDF document.
@@ -154,7 +154,7 @@ The following C# code shows how to rotate the pages in a counterclockwise direct
{% tabs %}
{% highlight c# %}
-
+
pdfViewer.PageOrganizer.RotatePagesCounterclockwiseCommand.Execute(new int[] { 0, 1 });
{% endhighlight %}
@@ -162,9 +162,9 @@ pdfViewer.PageOrganizer.RotatePagesCounterclockwiseCommand.Execute(new int[] { 0
## RemovePagesCommand
-Removing the specific pages can be achieved using the RemovePagesCommand. To achieve this functionality we have to define the code in the code-behind(i.e In a button click event
+Removing specific pages can be achieved using the RemovePagesCommand. To achieve this functionality we have to define the code in the code-behind (i.e., in a button click event).
-The following C# code shows how to remove pages using the [RemovePagesCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PageOrganizer.html#Syncfusion_Windows_PdfViewer_PageOrganizer_RemovePagesCommand) that is bonded to the button click event
+The following C# code shows how to remove pages using the [RemovePagesCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PageOrganizer.html#Syncfusion_Windows_PdfViewer_PageOrganizer_RemovePagesCommand) that is bound to the button click event
{% tabs %}
{% highlight c# %}
@@ -252,7 +252,7 @@ The following XAML code shows how to bind the SearchPreviousCommand to a button.
{% endtabs %}
N>
-* If the Searched text is not found a dialogue box will prompt which shows No matches were found
+* If the searched text is not found, a dialog box will appear stating that no matches were found.
## AnnotationCommand
@@ -271,7 +271,7 @@ The following list of AnnotationCommandParameter values to the AnnotationCommand
N>
* If the AnnotationCommandParameter value of AnnotationCommand is not equivalent to above mentioned any one of the text, then the annotation mode is set as none.
-* The AnnotationCommandParameter is not a case sensitive.
+* The AnnotationCommandParameter is not case-sensitive.
### Line Annotation
@@ -294,7 +294,7 @@ The following XAML code shows how to bind the annotation command for circle anno
{% highlight xaml %}
-
+
{% endhighlight %}
{% endtabs %}
@@ -345,9 +345,9 @@ The following XAML code shows how to bind the annotation command for strikethrou
{% tabs %}
{% highlight xaml %}
-
+
-
+
{% endhighlight %}
{% endtabs %}
@@ -444,7 +444,7 @@ pdfViewerControl.SaveDocumentCommand.Execute(@"C:\temp\Output.pdf");
## Unload Command
-Unloading a document in runtime can be easily achieved using the unload command
+Unloading a document at runtime can be easily achieved using the unload command.
The following XAML code shows how to bind the [UnloadCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_UnloadCommand) to a button
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/extract-text-from-PDF.md b/Document-Processing/PDF/PDF-Viewer/wpf/extract-text-from-PDF.md
index c60b6543b0..fc184fac92 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/extract-text-from-PDF.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/extract-text-from-PDF.md
@@ -1,7 +1,7 @@
---
layout: post
title: Extract Text from PDF Files in WPF Pdf Viewer | Syncfusion®
-description: Learn about Extract Text from PDF Files support in Syncfusion®; WPF Pdf Viewer control, its elements and more.
+description: Learn about Extract Text from PDF Files support in Syncfusion® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -72,12 +72,12 @@ namespace TextExtractionDemo
public MainWindow()
{
InitializeComponent();
- //Initialize the `PdfDocumentView` control.
+ //Initialize the `PdfDocumentView` control.
PdfDocumentView pdfDocumentView = new PdfDocumentView();
- //Load the PDF file.
+ //Load the PDF file.
pdfDocumentView.Load(@"Sample.pdf");
-
- //Extract text from the file.
+
+ //Extract text from the file.
TextLines textLines = new TextLines();
string extractedText = string.Empty;
for (int i = 0; i < pdfDocumentView.PageCount; i++)
@@ -87,7 +87,7 @@ namespace TextExtractionDemo
}
#endregion
}
-}
+}
{% endhighlight %}
{% endtabs %}
@@ -95,10 +95,10 @@ namespace TextExtractionDemo
### Extract lines
-You can get the text line by line along with the bounds using the [TextLines](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLines.html) property from the [ExtractText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_ExtractText_System_Int32_Syncfusion_Pdf_TextLines__) method. Refer to the following code sample to perform the same.
+You can get the text line by line along with the bounds using the [TextLines](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLines.html) property from the [ExtractText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_ExtractText_System_Int32_Syncfusion_Pdf_TextLines__) method. Refer to the following code sample.
{% tabs %}
-{% highlight C# %}
+{% highlight c# %}
using System.Drawing;
using System.Windows;
using Syncfusion.Pdf;
@@ -121,7 +121,7 @@ namespace TextExtractionDemo
pdfDocumentView.Load(@"Sample.pdf");
//Initialize the `TextLines`
TextLines textLines = new TextLines();
-
+
//Pass the `TextLines` as a parameter to the `ExtractText` method.
pdfDocumentView.ExtractText(0, out textLines);
//Gets specific line from the collection through the index.
@@ -139,10 +139,10 @@ namespace TextExtractionDemo
### Extract words
-You can get the words in a line along with the bounds using the [WordCollection](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLine.html#Syncfusion_Pdf_TextLine_WordCollection) property of the [TextLine](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLine.html) using [ExtractText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_ExtractText_System_Int32_Syncfusion_Pdf_TextLines__) method. Refer to the following code sample to perform the same.
+You can get the words in a line along with the bounds using the [WordCollection](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLine.html#Syncfusion_Pdf_TextLine_WordCollection) property of the [TextLine](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.TextLine.html) using [ExtractText](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html#Syncfusion_Windows_PdfViewer_PdfDocumentView_ExtractText_System_Int32_Syncfusion_Pdf_TextLines__) method. Refer to the following code sample.
{% tabs %}
-{% highlight C# %}
+{% highlight c# %}
using System.Collections.Generic;
using System.Drawing;
using System.Windows;
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-field-events.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-field-events.md
index 3f79b548c3..4ec70c22ab 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-field-events.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-field-events.md
@@ -1,8 +1,7 @@
---
layout: post
-title: Form Field Events in WPF Pdfviewer control | Syncfusion
+title: Form Field Events in WPF PDF Viewer control | Syncfusion
description: Learn about the different form field events supported in the Syncfusion WPF PDF Viewer and how they help manage user interactions and enhance form workflows.
-control: Form Field Events
control: PDF Viewer
documentation: ug
domainurl: ##DomainURL##
@@ -13,7 +12,7 @@ domainurl: ##DomainURL##
The Syncfusion [WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) supports form field click events, allowing applications to detect when a user clicks on a form field. These events can be used to trigger application‑specific actions or handle basic interactions when a form field is selected.
## Retrieve the form field details
-[WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows form field details to be retrieved through the [FormFieldClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FormFieldClicked) event of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) when a form field is clicked in the PDF document. The [FormField](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FormFieldClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FormFieldClickedEventArgs_FormField) property available in [FormFieldClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FormFieldClickedEventArgs.html) must be typecast to the appropriate form field type to access specific details.
+[WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows form field details to be retrieved through the [FormFieldClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_FormFieldClicked) event of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) when a form field is clicked in the PDF document. The [FormField](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FormFieldClickedEventArgs.html#Syncfusion_Windows_PdfViewer_FormFieldClickedEventArgs_FormField) property available in [FormFieldClickedEventArgs](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.FormFieldClickedEventArgs.html) must be cast to the appropriate form field type to access specific details.
The following code snippet demonstrates how to retrieve details for all supported form fields using the FormFieldClicked event.
@@ -68,7 +67,7 @@ private void PdfViewer_FormFieldClicked(object sender, FormFieldClickedEventArgs
{% endtabs %}
-**Common Use Cases**
+## Common Use Cases
Form field events can be used to:
- Track user interaction with form fields
@@ -78,10 +77,10 @@ Form field events can be used to:
## See also
-- [Overview](./overview)
+- [Overview](./overview)
- [Import form fields](./import-export-form-fields/import-form-fields)
- [Export form fields](./import-export-form-fields/export-form-fields)
- [Add form fields](./manage-form-fields/add-form-fields)
- [Modify form fields](./manage-form-fields/modify-form-fields)
-- [Remove form fields](./manage-form-fields/remove-form-fields)
+- [Remove form fields](./manage-form-fields/remove-form-fields)
- [Form fields API](./form-fields-api)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-fields-api.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-fields-api.md
index 4d71c8df44..e1e858101f 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-fields-api.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-fields-api.md
@@ -10,13 +10,13 @@ domainurl: ##DomainURL##
# Form Fields API in WPF PDF Viewer
-The PDF Viewer provides comprehensive APIs to Add, edit, Remove, import,Export and manage form fields programmatically. The following APIs are available:
+The PDF Viewer provides comprehensive APIs to Add, edit, remove, import, export, and manage form fields programmatically. The following APIs are available:
| API | Description |
|---|---|
-| [ImportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ImportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_) | Import form field data as in different format (Fdf,xfdf,Json,xml).|
-| [ExportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_System_String_) | Export form field data as in different format (Fdf,xfdf,Json,xml)as a downloadable file.|
-| LoadedDocument.Form.Fields | By accessing the LoadedDocument form fileds we can perform add, remove and modify the form fileds in code behind.|
+| [ImportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ImportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_) | Import form field data in different formats (FDF, XFDF, JSON, XML).|
+| [ExportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_System_String_) | Export form field data in different formats (FDF, XFDF, JSON, XML) as a downloadable file.|
+| LoadedDocument.Form.Fields | By accessing the LoadedDocument form fields, we can add, remove, and modify the form fields in code behind.|
## ImportFormData
The following example imports form field data as FDF.
@@ -65,7 +65,7 @@ End Sub
{% endtabs %}
## LoadedDocument Form field
-The below code snippet illustrates how to add a textbox field to a LoadedDocument
+The below code snippet illustrates how to add a textbox field in a LoadedDocument
{% tabs %}
{% highlight C# %}
@@ -88,10 +88,10 @@ private void AddTextbox_Click(object sender, RoutedEventArgs e)
Private Sub AddTextbox_Click(sender As Object, e As RoutedEventArgs)
If pdfViewer.LoadedDocument.Form IsNot Nothing Then
Dim page As PdfLoadedPage = TryCast(pdfViewer.LoadedDocument.Pages(0), PdfLoadedPage)
- `Create a textbox field and add the properties.
+ 'Create a textbox field and add the properties.
Dim textBoxField As PdfTextBoxField = New PdfTextBoxField(page, "FirstName")
textBoxField.Bounds = New RectangleF(0, 0, 100, 20)
- `Add the form field to the document.
+ 'Add the form field to the document.
pdfViewer.LoadedDocument.Form.Fields.Add(textBoxField)
End If
End Sub
@@ -99,7 +99,7 @@ End Sub
{% endhighlight %}
{% endtabs %}
-The below code snippet illustrates how to modify a textbox field to a LoadedDocument
+The below code snippet illustrates how to modify a textbox field in a LoadedDocument
{% tabs %}
{% highlight C# %}
@@ -135,7 +135,7 @@ End Sub
{% endhighlight %}
{% endtabs %}
-The below code snippet illustrates how to Remove a Form field to a LoadedDocument
+The below code snippet illustrates how to remove a form field from a LoadedDocument
{% tabs %}
{% highlight C# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-filling.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-filling.md
index 39e66ee871..422b1a805c 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-filling.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/form-filling.md
@@ -12,7 +12,7 @@ Filling PDF Forms in WPF PDF Viewer enables efficient entry and updating of form
1. [Form Filling Through User Interface](#fill-pdf-forms-through-the-user-interface)
2. [Filling Form Fields Programmatically](#fill-pdf-forms-programmatically)
-3. [Importing Form Field Data](#fill-pdf-forms-through-export-and-import-data)
+3. [Filling PDF Forms through Export and Import Data](#fill-pdf-forms-through-export-and-import-data)
## Fill PDF forms through the User Interface
@@ -21,7 +21,7 @@ The WPF PDF Viewer enables PDF form fields to be filled directly through the bui

-## Fill PDF forms programmatically
+## Fill PDF forms programmatically
WPF PDF Viewer allows PDF form fields to be filled or updated programmatically by accessing existing form fields and assigning values through APIs. This approach is useful when form data needs to be populated dynamically based on application logic or automated workflows.
@@ -102,7 +102,7 @@ End Sub
{% endhighlight %}
{% endtabs %}
-## Fill PDF forms through Export and Import Data
+## Fill PDF forms through Export and Import Data
In WPF PDF Viewer, exporting and importing form data simplifies working with PDF forms through both programmatic APIs and the built‑in user interface. Filled form data can be exported programmatically or through UI actions and stored in a database or file storage, preserving all entered values for later use. This capability helps save progress, share data between applications, and restore form states when needed.
@@ -110,12 +110,12 @@ The same exported data can be imported back into an existing PDF document using
{% tabs %}
-{% highlight c# %}
+{% highlight C# %}
private void button1_Click(object sender, RoutedEventArgs e)
{
//Import PDF form data
- pdfviewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf);
+ pdfViewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf);
}
{% endhighlight %}
@@ -123,20 +123,19 @@ private void button1_Click(object sender, RoutedEventArgs e)
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
'Import PDF form data
- pdfviewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf)
+ pdfViewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf)
End Sub
{% endhighlight %}
{% endtabs %}
-For more details, see [Import Form Data](./import-export-form-fields/import-form-fields).
-For more details, see [Export Form Data](./import-export-form-fields/export-form-fields).
+For more details, see [Import Form Data](./import-export-form-fields/import-form-fields) and [Export Form Data](./import-export-form-fields/export-form-fields).
## See also
- [Overview](./overview)
- [Add form fields](./manage-form-fields/add-form-fields)
-- [Modify form fields values](./manage-form-fields/modify-form-fields)
-- [Remove form fields](./manage-form-fields/remove-form-fields)
+- [Modify form fields values](./manage-form-fields/modify-form-fields)
+- [Remove form fields](./manage-form-fields/remove-form-fields)
- [Form fields API](./form-fields-api)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/export-form-fields.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/export-form-fields.md
index 76049c24ba..be0c33e071 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/export-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/export-form-fields.md
@@ -7,7 +7,7 @@ control: PDF Viewer
documentation: ug
---
-# Export PDF Form Data
+# Export PDF Form Data
The WPF PDF Viewer supports exporting form field data in multiple formats, enabling easy storage and seamless integration with other systems. Supported formats:
@@ -16,16 +16,18 @@ The WPF PDF Viewer supports exporting form field data in multiple formats, enabl
- [JSON](#export-as-json)
- [XML](#export-as-xml)
-Follow the below steps to export data from PDF document in UI
+Follow the steps below to export data from a PDF document in the UI.
1. Click the form data tool button in the left pane, the form data toolbar will appear as a secondary toolbar in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
2. Select **Export** option in form data toolbar to export the PDF form data.
3. In `Export Form Data As` dialog box, you can select the desired format to save the form data (FDF, XFDF, XML, and JSON).
N> If the PDF document is loaded as a stream, the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) will request for the form name when exporting.
-## How to export Programmatically
+## How to export programmatically
-[ExportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_System_String_) API is used to export the form fields data in code behind.This API allows the values filled in form fields to be extracted and saved in the required format, making it useful for storing form data, sharing it with external systems, or reusing it at a later stage without manual intervention.
+[ExportFormData](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ExportFormData_System_String_Syncfusion_Pdf_Parsing_DataFormat_System_String_) API is used to export the form fields data in code-behind. This API allows the values filled in form fields to be extracted and saved in the required format, making it useful for storing form data, sharing it with external systems, or reusing it at a later stage without manual intervention.
+
+N> The PDF document must contain form fields, and the document must be loaded into the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) before exporting.
### Export as FDF
The following example exports form field data as FDF.
@@ -36,7 +38,7 @@ The following example exports form field data as FDF.
private void button1_Click(object sender, RoutedEventArgs e)
{
//Export PDF form data
- pdfviewer.ExportFormData("Export.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf, "SourceForm.pdf");
+ pdfViewer.ExportFormData("Export.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf, "SourceForm.pdf");
}
{% endhighlight %}
@@ -44,7 +46,7 @@ private void button1_Click(object sender, RoutedEventArgs e)
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
'Export PDF form data
- pdfviewer.ExportFormData("Export.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf, "SourceForm.pdf")
+ pdfViewer.ExportFormData("Export.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf, "SourceForm.pdf")
End Sub
{% endhighlight %}
@@ -105,7 +107,7 @@ The following example exports form field data as XML.
private void button1_Click(object sender, RoutedEventArgs e)
{
//Export PDF form data
- pdfViewer.ExportFormData("Export.xml", Syncfusion.Pdf.Parsing.DataFormat.Xml, "SourceForm.pdf");
+ pdfViewer.ExportFormData("Export.xml", Syncfusion.Pdf.Parsing.DataFormat.Xml, "SourceForm.pdf");
}
{% endhighlight %}
@@ -113,12 +115,18 @@ private void button1_Click(object sender, RoutedEventArgs e)
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
'Export PDF form data
- pdfViewer.ExportFormData("Export.xml", Syncfusion.Pdf.Parsing.DataFormat.Xml, "SourceForm.pdf")
+ pdfViewer.ExportFormData("Export.xml", Syncfusion.Pdf.Parsing.DataFormat.Xml, "SourceForm.pdf")
End Sub
{% endhighlight %}
{% endtabs %}
+### ExportFormData parameters
+
+- `fileName` — Path of the output file to which the exported form data is written. Example: `Export.fdf`.
+- `format` — Format of the exported data from the [DataFormat](https://help.syncfusion.com/cr/wpf/Syncfusion.Pdf.Parsing.DataFormat.html) enum: `Fdf`, `XFdf`, `Json`, or `Xml`.
+- `formName` — Name of the PDF document containing the form fields. When the document is loaded as a stream, this value is prompted in the UI.
+
## Common Use Cases
- Save user-entered data to your server without altering the original PDF.
- Export as JSON for REST API integration.
@@ -126,7 +134,7 @@ End Sub
## See also
-- [Overview](../overview)
+- [Overview](../overview)
- [Import form fields](../import-form-fields)
- [Add form fields](../manage-form-fields/add-form-fields)
- [Modify form fields](../manage-form-fields/modify-form-fields)
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/import-form-fields.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/import-form-fields.md
index 3f61c89067..209fd326aa 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/import-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/import-export-form-fields/import-form-fields.md
@@ -9,17 +9,17 @@ documentation: ug
# Import PDF Form Data
-The WPF PDF Viewer supports importing values into interactive form fields of the currently loaded PDF document. Form data can be imported from the following supported formats:
+The WPF PDF Viewer supports importing values into interactive form fields of the currently loaded PDF document. The PDF must already contain `AcroForm` fields; the import operation only populates existing fields. Form data can be imported from the following supported formats:
-- [FDF](#import-as-fdf)
+- [FDF](#import-fdf)
- [XFDF](#import-xfdf)
- [JSON](#import-json)
- [XML](#import-xml)
-Follow the below steps to import data to PDF document with `AcroForm`.
+Follow the steps below to import data into a PDF document that contains `AcroForm` fields.
-1. Click the form data tool button in the left pane, the form data toolbar will appear as a secondary toolbar in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
-2. Select **Import** option in form data toolbar to import the PDF form data.
+1. Click the form data tool button in the left pane. The form data toolbar will appear as a secondary toolbar in the [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
+2. Select the **Import** option in the form data toolbar to import the PDF form data.

@@ -36,7 +36,7 @@ The following example imports form field data as FDF.
private void button1_Click(object sender, RoutedEventArgs e)
{
//Import PDF form data
- pdfviewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf);
+ pdfViewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf);
}
{% endhighlight %}
@@ -44,7 +44,7 @@ private void button1_Click(object sender, RoutedEventArgs e)
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
'Import PDF form data
- pdfviewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf)
+ pdfViewer.ImportFormData("Import.fdf", Syncfusion.Pdf.Parsing.DataFormat.Fdf)
End Sub
{% endhighlight %}
@@ -96,7 +96,7 @@ End Sub
{% endhighlight %}
{% endtabs %}
-## Import XML
+### Import XML
The following example imports form field data as XML.
{% tabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/add-form-fields.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/add-form-fields.md
index 9979112da7..9de5616d82 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/add-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/add-form-fields.md
@@ -12,9 +12,9 @@ documentation: ug
The [WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows developers to add form fields using code. By accessing the loaded PDF document through the viewer’s API, developers can create and insert form fields directly into the document.
### Textbox
-[PdfTextBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextBoxField.html) Instance is used to create a text box field in PDF forms.
+The [PdfTextBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextBoxField.html) instance is used to create a text box field in PDF forms.
-The below code snippet illustrates how to add a textbox field to a LoadedDocument
+The following code snippet illustrates how to add a textbox field to a LoadedDocument.
{% tabs %}
{% highlight C# %}
@@ -37,10 +37,10 @@ private void AddTextbox_Click(object sender, RoutedEventArgs e)
Private Sub AddTextbox_Click(sender As Object, e As RoutedEventArgs)
If pdfViewer.LoadedDocument.Form IsNot Nothing Then
Dim page As PdfLoadedPage = TryCast(pdfViewer.LoadedDocument.Pages(0), PdfLoadedPage)
- `Create a textbox field and add the properties.
+ 'Create a textbox field and add the properties.
Dim textBoxField As PdfTextBoxField = New PdfTextBoxField(page, "FirstName")
textBoxField.Bounds = New RectangleF(0, 0, 100, 20)
- `Add the form field to the document.
+ 'Add the form field to the document.
pdfViewer.LoadedDocument.Form.Fields.Add(textBoxField)
End If
End Sub
@@ -50,7 +50,7 @@ End Sub
### Password
-[PdfTextBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextBoxField.html) Instance is used to create a text box field in PDF forms. This field allows users to enter text input into the document. It also supports password functionality by setting the Password property to true.
+The [PdfTextBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfTextBoxField.html) instance is used to create a text box field in PDF forms. This field allows users to enter text input into the document. It also supports password functionality by setting the Password property to true.
{% tabs %}
{% highlight C# %}
@@ -85,9 +85,9 @@ End Sub
{% endtabs %}
### CheckBox
-A check box field in PDF forms can be created using the [PdfCheckBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfCheckBoxField.html) Instance.
+A check box field in PDF forms can be created using the [PdfCheckBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfCheckBoxField.html) instance.
-Please refer the below code snippet for adding the check box field in LoadedDocument.
+Please refer to the following code snippet for adding a check box field to the LoadedDocument.
{% tabs %}
{% highlight C# %}
@@ -127,9 +127,9 @@ End Sub
{% endtabs %}
### RadioButton
-Radio buttons in PDF forms can be created using the [PdfRadioButtonListField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfRadioButtonListField.html) Instance. Individual radio button items within the group can be created using the [PdfRadioButtonListItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfRadioButtonListItem.html) Instance.
+Radio buttons in PDF forms can be created using the [PdfRadioButtonListField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfRadioButtonListField.html) instance. Individual radio button items within the group can be created using the [PdfRadioButtonListItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfRadioButtonListItem.html) instance.
-Please refer the below code snippet for adding the radio button in LoadedDocument.
+Please refer to the following code snippet for adding a radio button to the LoadedDocument.
{% tabs %}
{% highlight C# %}
@@ -178,9 +178,9 @@ End Sub
{% endtabs %}
### ListBox
-A list box form field in PDF documents can be created using the [PdfListBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListBoxField.html) Instance. Individual listBox item added by using [PdfListFieldItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListFieldItem.html) Instance.
+A list box form field in PDF documents can be created using the [PdfListBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListBoxField.html) instance. Individual list box items are added by using the [PdfListFieldItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListFieldItem.html) instance.
-Please refer the below code snippet for adding the list box field in LoadedDocument.
+Please refer to the following code snippet for adding a list box field to the LoadedDocument.
{% tabs %}
{% highlight C# %}
@@ -234,9 +234,9 @@ End Sub
{% endtabs %}
### ComboBox
-The [PdfComboBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfComboBoxField.html) Instance is used to create a combo box field in PDF forms. A list of selectable items can be added to the combo box by using the [PdfListFieldItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListFieldItem.html) class.
+The [PdfComboBoxField](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfComboBoxField.html) instance is used to create a combo box field in PDF forms. A list of selectable items can be added to the combo box by using the [PdfListFieldItem](https://help.syncfusion.com/cr/document-processing/Syncfusion.Pdf.Interactive.PdfListFieldItem.html) instance.
-Please refer the below code snippet for adding the combo box in LoadedDocument.
+Please refer to the following code snippet for adding a combo box to the LoadedDocument.
{% tabs %}
{% highlight C# %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/modify-form-fields.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/modify-form-fields.md
index b422f865b6..62ee622900 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/modify-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/modify-form-fields.md
@@ -7,20 +7,20 @@ control: PDF Viewer
documentation: ug
---
-# Modify Form Field values
+# Modify Form Field values
[WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows PDF form field values to be updated through the user interface for manual changes or through programmatic APIs for automated and dynamic updates.
## Modify Form Field values using UI
-The Syncfusion [WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows to modify PDF form fields values directly through the user interface without using code. Users can click on form fields and enter or select values based on the field type. It supports common form fields such as text boxes, check boxes, radio buttons and list boxes.Filled values can be edited at any time, and the entered data is retained during the viewing session.
+The Syncfusion [WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows you to modify PDF form fields values directly through the user interface without using code. Users can click on form fields and enter or select values based on the field type. It supports common form fields such as text boxes, check boxes, radio buttons and list boxes. Filled values can be edited at any time, and the entered data is retained during the viewing session.

-N > PDF signature fields modification through programmatic APIs is not supported. However, users can add, modify, or delete signatures directly through the UI alone.
+Note > PDF signature field modification through programmatic APIs is not supported. However, users can add, modify, or delete signatures directly through the UI alone.
## Modify Form Field values programmatically
[WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) allows PDF form field values to be modified programmatically by accessing existing form fields through APIs. Developers can retrieve form fields from the loaded PDF document’s form collection and update their values using code. This approach is useful for dynamically setting form data based on application logic.
-### Textbox
+### TextBox
A text box form field can be updated using code by accessing it from the loaded PDF document. Developers can retrieve the `PdfLoadedTextBoxField` from the document’s form fields collection and change its text value programmatically to automatically fill or update data.
{% tabs %}
@@ -187,7 +187,7 @@ End Sub
## See also
-- [Overview](../overview)
+- [Overview](../overview)
- [Add form fields](./add-form-fields)
- [Remove form Fields](./remove-form-fields)
- [Form fields API](../form-fields-api)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/remove-form-fields.md b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/remove-form-fields.md
index f7a4b454dd..4e7444f453 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/remove-form-fields.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/forms/manage-form-fields/remove-form-fields.md
@@ -12,7 +12,7 @@ documentation: ug
The [WPF PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/overview) supports removing existing form fields from a PDF document exclusively through programmatic APIs. By accessing the loaded PDF document’s form fields collection, specific form fields can be identified and deleted as required.
## Remove Form Fields Programmatically
-The `PDF Viewer` form fields be removed using code by accessing the loaded PDF document. This makes it easy to delete unwanted form fields when updating or managing PDF files.
+The `PDF Viewer` form fields can be removed using code by accessing the loaded PDF document. This makes it easy to delete unwanted form fields when updating or managing PDF files.
The following code sample explains how to remove the form field during runtime.
@@ -30,8 +30,8 @@ private void RemoveAt_Click(object sender, RoutedEventArgs e)
{% highlight VB %}
Private Sub RemoveAt_Click(sender As Object, e As RoutedEventArgs)
- If pdfViewer.LoadedDocument.Form.Fields.Count > 0 Then
- `Remove the field at index 0.
+ If pdfViewer.LoadedDocument.Form.Fields.Count > 0 Then
+ ' Remove the field at index 0.
pdfViewer.LoadedDocument.Form.Fields.RemoveAt(0)
End If
End Sub
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/password-protected-pdf-files.md b/Document-Processing/PDF/PDF-Viewer/wpf/password-protected-pdf-files.md
index fe6b5653e6..040b660748 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/password-protected-pdf-files.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/password-protected-pdf-files.md
@@ -38,18 +38,19 @@ namespace PdfViewerDemo
## View password protected PDF files in run time
-When opening a password protected PDF file in run time using the Open button available in the toolbar, the following built-in password dialog window helps to to view the file contents, requesting the correct password from the user. In the password textbox, enter the correct password and click `OK`.
+When opening a password protected PDF file in run time using the Open button available in the toolbar, the following built-in password dialog window helps to view the file contents, requesting the correct password from the user. In the password textbox, enter the correct password and click `OK`.

## Hide the built-in password dialog
-PDF Viewer helps to hide the built-in password using the `GetDocumentPassword` and gets the password using the `Password` property of the `GetDocumentPasswordEventArgs`. The event `GetDocumentPassword` occurs every time when you try to open a password protected PDF file in run-time. By setting the `Handled` property of `GetDocumentPasswordEventArgs` to true, the built-in password dialog will not appear. Refer to the following code to hide the password dialog and to provide password to open the file by wiring the event.
+PDF Viewer helps to hide the built-in password dialog by handling the `GetDocumentPassword` event. The password is supplied through the `Password` property of the `GetDocumentPasswordEventArgs`. The event occurs every time when you try to open a password protected PDF file in run-time. By setting the `Handled` property of `GetDocumentPasswordEventArgs` to true, the built-in password dialog will not appear. Refer to the following code to hide the password dialog and to provide password to open the file by wiring the event.
{% tabs %}
{% highlight c# %}
using Syncfusion.Windows.PdfViewer;
using System.Collections.Generic;
+using System.IO;
using System.Windows;
namespace PasswordPDFDemo
@@ -59,7 +60,7 @@ namespace PasswordPDFDemo
public MainWindow()
{
InitializeComponent();
- pdfViewerControl. GetDocumentPassword += PdfViewer_GetDocumentPassword;
+ pdfViewerControl.GetDocumentPassword += PdfViewer_GetDocumentPassword;
string filePath = Path.GetFullPath(@"../../Data/syncfusion.pdf");
pdfViewerControl.Load(filePath);
}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/pdf-rendering-engines.md b/Document-Processing/PDF/PDF-Viewer/wpf/pdf-rendering-engines.md
index 80d1a45fc0..89b4776638 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/pdf-rendering-engines.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/pdf-rendering-engines.md
@@ -26,8 +26,8 @@ N>* From v29.1.x onwards, Pdfium is upgraded to the new version which was built
* On running your WPF application, Syncfusion® PDF Viewer control generates a folder named `PDFium` in the application output path folder (for example: bin/release or bin/debug) at runtime.
* Syncfusion® PDF Viewer control detects the architecture of the running machine automatically.
-* Next, it creates another subfolder named “x64”, “x86” or “arm64” based on the machine architecture.
-* Extracts the PDFium binary (PDFium.dll) into the subfolder (x64, x86 or arm64) and consumes it to render PDF files.
+* Next, it creates another subfolder named “x64”, “x86”, or “arm64” based on the machine architecture.
+* Extracts the PDFium binary (PDFium.dll) into the subfolder (x64, x86, or arm64) and consumes it to render PDF files.

@@ -35,13 +35,15 @@ N> PDFium rendering is not supported in Windows XP operating system.
### How to run PDFium in a restricted access environment
-If there is any access restriction applied to the application output folder, then the Syncfusion® PDF Viewer control cannot able to extract and consume the PDFium engine as mentioned above.
+If there is any access restriction applied to the application output folder, then the Syncfusion® PDF Viewer control is unable to extract and consume the PDFium engine as mentioned above.
In that situation, you need to add the following steps to consume the PDFium rendering engine.
-* Create a folder where your application can access, create & read files. For example, "d:\ThirdPartyBinaries\".
+* Manually obtain the required PDFium assemblies (PDFium.dll) for the x64, x86, and arm64 architectures.
+* Create a folder where your application can access, create & read files. For example, "d:\ThirdPartyBinaries\Pdfium\".
+* Place the obtained PDFium assemblies in the correct folder structure as shown below.
* Update the path of this folder to the [ReferencePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ReferencePath) property of PDF Viewer control, like shown in the following code sample.
-* If [ReferencePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ReferencePath) is set, then PDF Viewer control extracts the PDFium binary inside that specified folder and consume the PDFium rendering engine.
+* If [ReferencePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ReferencePath) is set, then PDF Viewer control extracts the PDFium binary inside that specified folder and consumes the PDFium rendering engine.
{% tabs %}
{% highlight c# %}
@@ -49,7 +51,7 @@ using System.Windows;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
@@ -66,6 +68,7 @@ namespace PdfViewerDemo
{% endhighlight %}
{% endtabs %}
+N> Place the `Sample.pdf` file in the application's output folder (for example, bin/release or bin/debug) so that it can be loaded successfully.
N>In the run time, the PDF viewer will check the custom folder path provided in the [ReferencePath](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_ReferencePath) property. If you already placed the Pdfium assemblies in the custom folder path, it will refer to the already available assemblies from the location. It won’t generate the assemblies in the folder again.
N>You need to place the PDFium assembly in the correct folder structure as mentioned below.
N>* ThirdPartyBinaries
@@ -79,7 +82,7 @@ N> * Pdfium.dll
## SfPdf
-`SfPdf` is the Syncfusion’s own PDF rendering engine. Before v16.3.0.x, PDF Viewer control has used this rendering engine as default to rendering the PDF pages. If you wish to use `SfPdf` rendering engine or face any compatibility issues with `Pdfium` rendering engine in your environment, you may set the [RenderingEngine](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_RenderingEngine) property to `SfPdf` as shown in the following code sample.
+`SfPdf` is the Syncfusion’s own PDF rendering engine. Before v16.3.0.x, PDF Viewer control used this rendering engine as the default for rendering the PDF pages. If you face any compatibility issues with the `Pdfium` rendering engine or wish to use the `SfPdf` rendering engine in your environment, you may set the [RenderingEngine](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_RenderingEngine) property to `SfPdf` as shown in the following code sample.
N> The recommended PDF rendering engine is PDFium.
@@ -91,7 +94,7 @@ using Syncfusion.Windows.PdfViewer;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/text-extraction-engines.md b/Document-Processing/PDF/PDF-Viewer/wpf/text-extraction-engines.md
index 29223cd44b..427847805e 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/text-extraction-engines.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/text-extraction-engines.md
@@ -1,7 +1,7 @@
---
layout: post
title: Text Extraction Engines in WPF Pdf Viewer control | Syncfusion®;
-description: Learn about Text Extraction Engines supported in Syncfusion®; Essential Studio® WPF Pdf Viewer control, its elements and more.
+description: Learn about Text Extraction Engines supported in Syncfusion® Essential Studio® WPF Pdf Viewer control, its elements and more.
platform: document-processing
control: PDF Viewer
documentation: ug
@@ -9,20 +9,20 @@ documentation: ug
# Text Extraction Engines in WPF Pdf Viewer
-[WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) extracts text information from PDF files through two different engines for performing text search, text selection, creating text markups and more.
+[WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer) extracts text information from PDF files through two different engines for text search, text selection, and text markup creation.
-* PDFium (Google Chrome’s text extraction engine)
-* SfPdf (Syncfusion’s own text extraction engine)
+* PDFium (Google Chrome's text extraction engine)
+* SfPdf (Syncfusion's own text extraction engine)
-N> Before version 19.4.0.48, we used our own text extraction engine (SfPdf) to perform text-based operations in the PDF pages. We have updated our default text extraction engine to PDFium from version 19.4.0.48.
+N> Before Essential Studio version 19.4.0.48, the SfPdf engine was used as the default for text-based operations in the PDF pages. From version 19.4.0.48 onwards, the default text extraction engine has been changed to PDFium.
-The PDFium text extraction engine is recommended for improved performance. However, you may still use our old text extraction engine by setting the [TextExtractionEngine](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_TextExtractionEngine) property to `SfPdf`. Refer to the following code snippet to apply the same.
+The PDFium text extraction engine is recommended for improved performance. However, you may still use the SfPdf text extraction engine by setting the [TextExtractionEngine](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_TextExtractionEngine) property to `SfPdf`. Set this property before loading the PDF document. Refer to the following code snippet to apply the same.
{% tabs %}
{% highlight c# %}
+using Syncfusion.Windows.PdfViewer;
pdfViewer.TextExtractionEngine = PdfTextExtractionEngine.SfPdf;
-
{% endhighlight %}
{% endtabs %}
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/ui-builder-skill.md b/Document-Processing/PDF/PDF-Viewer/wpf/ui-builder-skill.md
index 8b20236ccd..659c35158c 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/ui-builder-skill.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/ui-builder-skill.md
@@ -32,8 +32,8 @@ Before installing WPF UI Builder Skill with PDF Viewer, ensure the following:
### **AI-Driven UI Generation**
- Transforms prompts into fully developed WPF components rather than just partial code snippets.
-- Automatically selects appropriate Syncfusion® components and features
-- Produces structured, maintainable code
+- Automatically selects appropriate Syncfusion® components and features.
+- Produces structured, maintainable code.
### **Control Usage & API Accuracy**
- Uses correct Syncfusion® control APIs
@@ -195,4 +195,4 @@ The skill proposes changes and requires confirmation for insertion; automatic de
## See also
- [Agent Skills Standards](https://agentskills.io/home)
-- [Agent Package Manager](https://microsoft.github.io/apm/getting-started/quick-start/)
+- [Agent Package Manager](https://microsoft.github.io/apm/getting-started/quick-start/)
\ No newline at end of file
diff --git a/Document-Processing/PDF/PDF-Viewer/wpf/working-with-pdf-pages.md b/Document-Processing/PDF/PDF-Viewer/wpf/working-with-pdf-pages.md
index 30fb3b9d42..9f85f470ad 100644
--- a/Document-Processing/PDF/PDF-Viewer/wpf/working-with-pdf-pages.md
+++ b/Document-Processing/PDF/PDF-Viewer/wpf/working-with-pdf-pages.md
@@ -17,7 +17,7 @@ N> This border customization applies only when viewing the PDF file in the PDF v
### Color
-The [Color](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PageBorder.html#Syncfusion_Windows_PdfViewer_PageBorder_Color) property of the [PageBorder](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PageBorder) allows you to customize the border color of the pages that are being displayed in the PDF Viewer. The default border color of the pages is `Black`. Refer to the following code sample to set a different color to the border of the pages.
+The [Color](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PageBorder.html#Syncfusion_Windows_PdfViewer_PageBorder_Color) property of the [PageBorder](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PageBorder.html) allows you to customize the border color of the pages that are being displayed in the PDF Viewer. The default border color of the pages is `Black`. Refer to the following code sample to set a different color to the border of the pages.
{% tabs %}
{% highlight c# %}
@@ -27,7 +27,7 @@ using Syncfusion.Windows.PdfViewer;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
@@ -39,7 +39,7 @@ namespace PdfViewerDemo
PageBorder pageBorder = new PageBorder();
//Set the `Color` property.
pageBorder.Color = System.Drawing.Color.Red;
- //Assign the 'PageBorder' propery of PDF Viewer.
+ //Assign the 'PageBorder' property of PDF Viewer.
pdfViewer.PageBorder = pageBorder;
//Load the PDF file.
pdfViewer.Load(@"Sample.pdf");
@@ -62,7 +62,7 @@ using Syncfusion.Windows.PdfViewer;
namespace PdfViewerDemo
{
///
- /// Interaction logic for Window1.xaml
+ /// Interaction logic for MainWindow.xaml
///
public partial class MainWindow : Window
{
@@ -74,7 +74,7 @@ namespace PdfViewerDemo
PageBorder pageBorder = new PageBorder();
//Set the `IsVisible` property as false to hide the page border.
pageBorder.IsVisible = false;
- //Assign the 'PageBorder' propery of PDF Viewer.
+ //Assign the 'PageBorder' property of PDF Viewer.
pdfViewer.PageBorder = pageBorder;
//Load the PDF file.
pdfViewer.Load(@"Sample.pdf");
@@ -99,7 +99,7 @@ The [PageClicked](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewe
using System.Windows;
using Syncfusion.Windows.PdfViewer;
-namespace WPF_PDFViewer
+namespace PdfViewerDemo
{
public partial class MainWindow : Window
{
@@ -130,14 +130,14 @@ namespace WPF_PDFViewer
{% endtabs %}
### Page Mouse Move
-The [PageMouseMove](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PageMouseMove) event occurs when a user move the mouse on a PDF page. It provides information about the page index and the position on the page where the mouse has moved. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
+The [PageMouseMove](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PageMouseMove) event occurs when a user moves the mouse on a PDF page. It provides information about the page index and the position on the page where the mouse has moved. The following code shows how to wire the event in [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html).
{% tabs %}
{% highlight c# %}
using System.Windows;
using Syncfusion.Windows.PdfViewer;
-namespace WPF_PDFViewer
+namespace PdfViewerDemo
{
public partial class MainWindow : Window
{
@@ -155,9 +155,9 @@ namespace WPF_PDFViewer
///
private void PdfViewer_PageMouseMove(object sender, PageMouseMoveEventArgs args)
{
- //Get the page index on the page where you clicked
+ //Get the page index on the page where the mouse has moved
int pageIndex = args.PageIndex;
- //Get the position on the page where you clicked
+ //Get the position on the page where the mouse has moved
Point position = args.Position;
//Insert Your code Here.