You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WindowsForms/PDF-Viewer/Getting-Started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ Refer to the [Control Dependencies](https://help.syncfusion.com/windowsforms/con
15
15
16
16
### Installing NuGet packages
17
17
18
-
Adding reference to Syncfusion assemblies through NuGet packages is illustrated in the [NuGet Packages](https://help.syncfusion.com/windowsforms/installation/install-nuget-packages) section.
18
+
Adding reference to Syncfusion® assemblies through NuGet packages is illustrated in the [NuGet Packages](https://help.syncfusion.com/windowsforms/installation/install-nuget-packages) section.
19
19
20
20
N> Starting with version 23.1.x, a reference to the Syncfusion.PdfToImageConverter.Base assembly is necessary for PdfViewer applications.
21
-
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.
21
+
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.
22
22
23
23
### Adding from the installed location
24
24
@@ -32,7 +32,7 @@ From v16.3.0x onwards, PDF Viewer uses PDFium as a default rendering engine to r
32
32
33
33
### Adding in designer
34
34
35
-
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).
35
+
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).
36
36
37
37

38
38
@@ -122,7 +122,7 @@ The [PdfDocumentView](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Win
122
122
123
123
### Adding in designer
124
124
125
-
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).
125
+
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).
126
126
127
127

Copy file name to clipboardExpand all lines: WindowsForms/PDF-Viewer/Searching-Text.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Searching Text in Windows Forms PDF Viewer (PdfViewerControl)
11
11
12
-
The Essential `PdfViewerControl` allows users to search a given text in the PDF document. The search box will appear when `Ctrl+F` is pressed and searches the text in the PDF document as shown in the following figure.
12
+
The Essential®`PdfViewerControl` allows users to search a given text in the PDF document. The search box will appear when `Ctrl+F` is pressed and searches the text in the PDF document as shown in the following figure.
13
13
14
14

15
15
@@ -18,7 +18,7 @@ The Essential `PdfViewerControl` allows users to search a given text in the PDF
18
18
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.
19
19
20
20
{% tabs %}
21
-
{%highlight c#%}
21
+
{%highlight c#%}
22
22
23
23
PdfViewerControl pdfViewerControl = new PdfViewerControl();
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.
57
57
58
58
{% tabs %}
59
-
{%highlight c#%}
59
+
{%highlight c#%}
60
60
61
61
PdfViewerControl pdfViewerControl = new PdfViewerControl();
## Find all the instances of a text and its bounds
143
143
144
144
The `PdfViewerControl` also supports searching 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 which returns true when the text given is found in the document. The dictionary contains the page indices and the list of rectangular coordinates of the text found in that page. The following code snippet illustrates how text search can be achieved in the `PdfViewerControl`.
## Find the total number of instances of a text in the PDF document
@@ -175,7 +175,7 @@ PDF viewer allows you to find the total number of instances of a text in the PDF
175
175
The following code snippet illustrates how to find the total number of instances of a term “time” present in the PDF document using `PdfViewerControl`.
176
176
177
177
{% tabs %}
178
-
{%highlight c#%}
178
+
{%highlight c#%}
179
179
180
180
PdfViewerControl pdfViewerControl = new PdfViewerControl();
181
181
pdfViewerControl.Load("Sample.pdf");
@@ -189,13 +189,13 @@ foreach (KeyValuePair<int, List<RectangleF>> matchedText in matchedTextDetails)
189
189
totalInstances += matchedText.Value.Count;
190
190
}
191
191
192
-
{%endhighlight%}
192
+
{%endhighlight%}
193
193
{% endtabs %}
194
194
195
195
The following code snippet illustrates how to achieve the same using `PdfDocumentView`.
196
196
197
197
{% tabs %}
198
-
{%highlight c#%}
198
+
{%highlight c#%}
199
199
200
200
PdfDocumentView pdfDocumentView = new PdfDocumentView();
201
201
pdfDocumentView.Load("Sample.pdf");
@@ -209,5 +209,5 @@ foreach (KeyValuePair<int, List<RectangleF>> matchedText in matchedTextDetails)
0 commit comments