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: Document-Processing/PDF/PDF-Viewer/winforms/Bookmark-Navigation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,12 @@ documentation: ug
11
11
12
12
[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.
13
13
14
-
## Steps to perform bookmark navigation in PdfViewerControl.
14
+
## Steps to perform bookmark navigation in PdfViewerControl
15
15
16
-
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).
16
+
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).
17
17
2. Clicking on the bookmark button from the left pane will list the bookmarks present in the PDF document.
18
18
3. To jump to a specific section, click its name in the bookmark pane.
19
-
4. If the bookmark has some children, you can explore them by clicking on the “+” button to the left of it.
19
+
4. If the bookmark has child bookmarks, you can explore them by clicking on the “+” button to the left of it.
20
20
21
21

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).
96
+
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).
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/winforms/Getting-Started.md
+58-58Lines changed: 58 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ You can create a **Windows Forms Application** using Visual Studio via [Microsof
19
19
20
20
## Assemblies Deployment
21
21
22
-
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.
22
+
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.
23
23
24
24
{% tabcontents %}
25
25
{% tabcontent NuGet Package %}
26
26
27
-
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.
27
+
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.
28
28
29
29
### Install Syncfusion<supstyle="font-size:70%">®</sup> Windows Forms PdfViewer NuGet packages
30
30
@@ -38,7 +38,7 @@ To add **Windows Forms PdfViewer** component in the application, open the NuGet
38
38
39
39
### Add Syncfusion® WinForms PdfViewer Assemblies
40
40
41
-
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.
41
+
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.
42
42
43
43
<table>
44
44
<tr>
@@ -60,117 +60,117 @@ This library is responsible for Pdfium integration and image generation, enhanci
60
60
<tr>
61
61
<td>
62
62
Syncfusion.PdfViewer.Windows.dll</td><td>
63
-
This component contains the rendering area and other related UI elements.</td></tr>
63
+
This assembly contains the rendering area and other related UI elements.</td></tr>
64
64
<tr>
65
65
<td>
66
66
Syncfusion.Shared.Base.dll</td><td>
67
-
This component contains various UI controls (ColorPickerPalette and Numeric UpDown) that are used in the PDF Viewer.</td></tr>
67
+
This assembly contains various UI controls (ColorPickerPalette and Numeric UpDown) that are used in the PDF Viewer.</td></tr>
68
68
</table>
69
69
70
70
{% endtabcontent %}
71
71
72
72
{% endtabcontents %}
73
73
74
74
N>* Starting with version 23.1.x, Syncfusion PdfToImageConverter is necessary for PdfViewer applications.
75
-
N>* Starting with v16.2.0.x, if you reference Syncfusion<sup>®</sup>; 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.
75
+
N>* Starting with version 16.2.0.x, if you reference Syncfusion<sup>®</sup>; 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.
76
76
77
77
78
78
## Add Windows Forms PdfViewer component
79
79
80
-
WinForms PdfViewer control can be added to an application either through the designer (XAML) or programmatically using code.
80
+
WinForms PdfViewer control can be added to an application either through the Windows Forms Designer or programmatically using code.
81
81
82
82
{% tabcontents %}
83
83
{% tabcontent Via Designer %}
84
84
85
-
1.Open your form in the designer. Add the Syncfusion<sup>®</sup>; 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).
85
+
1.Open your form in the designer. Add the Syncfusion<sup>®</sup>; 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).
86
86
87
87

88
88
89
-
2.Drag the PdfViewerControl from the toolbox onto the form. Appearance and behavior related aspects of the PdfViewerControl can be controlled by setting the appropriate properties through the properties grid.
89
+
2.Drag the PdfViewerControl from the toolbox onto the form. Appearance and behavior related aspects of the PdfViewerControl can be controlled by setting the appropriate properties through the properties grid.
90
90
91
91

92
92
93
-
3.This will add the instance 'pdfViewerControl1' to the Designercs 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.
93
+
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.
94
94
95
-
{% tabs %}
96
-
{% highlight c# tabtitle="C#" %}
95
+
{% tabs %}
96
+
{% highlight c# tabtitle="C#" %}
97
97
98
-
//Loading the document in the PdfViewerControl
99
-
pdfViewerControl1.Load("Sample.pdf");
98
+
//Loading the document in the PdfViewerControl
99
+
pdfViewerControl1.Load("Sample.pdf");
100
100
101
-
{% endhighlight %}
102
-
{% highlight vb tabtitle="VB.NET" %}
101
+
{% endhighlight %}
102
+
{% highlight vb tabtitle="VB.NET" %}
103
103
104
-
'Loading the document in the PdfViewerControl
105
-
pdfViewerControl1.Load("Sample.pdf")
104
+
'Loading the document in the PdfViewerControl
105
+
pdfViewerControl1.Load("Sample.pdf")
106
106
107
-
{% endhighlight %}
108
-
{% endtabs %}
107
+
{% endhighlight %}
108
+
{% endtabs %}
109
109
110
110
111
-
{% endtabcontent %}
111
+
{% endtabcontent %}
112
112
113
-
{% tabcontent Via Coding %}
113
+
{% tabcontent Via Coding %}
114
114
115
-
1.Add Syncfusion.Windows.Forms.PdfViewer namespace in Form1.cs.
115
+
1.Add Syncfusion.Windows.Forms.PdfViewer namespace in Form1.cs.
116
116
117
117
118
-
{% tabs %}
119
-
{% highlight c# tabtitle="C#" %}
118
+
{% tabs %}
119
+
{% highlight c# tabtitle="C#" %}
120
120
121
-
using Syncfusion.Windows.Forms.PdfViewer;
121
+
using Syncfusion.Windows.Forms.PdfViewer;
122
122
123
-
{% endhighlight %}
124
-
{% highlight vb tabtitle="VB.NET" %}
123
+
{% endhighlight %}
124
+
{% highlight vb tabtitle="VB.NET" %}
125
125
126
-
Imports Syncfusion.Windows.Forms.PdfViewer
126
+
Imports Syncfusion.Windows.Forms.PdfViewer
127
127
128
-
{% endhighlight %}
129
-
{% endtabs %}
128
+
{% endhighlight %}
129
+
{% endtabs %}
130
130
131
131
132
-
2.Create PdfViewerControl instance and load the PDF in Form1.cs.
132
+
2.Create a PdfViewerControl instance and load the PDF inside Constructor in Form1.cs. Also place the sample PDF document in the project folder.
133
133
134
-
{% tabs %}
135
-
{% highlight c# tabtitle="C#" %}
134
+
{% tabs %}
135
+
{% highlight c# tabtitle="C#" %}
136
136
137
-
//Initializing the PdfViewerControl
138
-
PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
137
+
//Initializing the PdfViewerControl
138
+
PdfViewerControl pdfViewerControl1 = new PdfViewerControl();
139
139
140
-
//Add PdfViewerControl to the Form
141
-
Controls.Add(pdfViewerControl1);
142
-
//Docking the control to all edges of its containing control and sizing appropriately.
143
-
pdfViewerControl1.Dock = DockStyle.Fill;
140
+
//Add PdfViewerControl to the Form
141
+
Controls.Add(pdfViewerControl1);
142
+
//Docking the control to all edges of its containing control and sizing appropriately.
143
+
pdfViewerControl1.Dock = DockStyle.Fill;
144
144
145
-
//Loading the document in the PdfViewerControl
146
-
pdfViewerControl1.Load("Sample.pdf");
145
+
//Loading the document in the PdfViewerControl
146
+
pdfViewerControl1.Load(@"../../Sample.pdf");
147
147
148
-
{% endhighlight %}
149
-
{% highlight vb tabtitle="VB.NET" %}
148
+
{% endhighlight %}
149
+
{% highlight vb tabtitle="VB.NET" %}
150
150
151
-
'Initializing the PdfViewerControl
152
-
Dim pdfViewerControl1 As PdfViewerControl = New PdfViewerControl()
151
+
'Initializing the PdfViewerControl
152
+
Dim pdfViewerControl1 As PdfViewerControl = New PdfViewerControl()
153
153
154
-
'Add PdfViewerControl to the Form
155
-
Controls.Add(pdfViewerControl1)
156
-
'Docking the control to all edges of its containing control and sizing appropriately.
157
-
pdfViewerControl1.Dock = DockStyle.Fill
154
+
'Add PdfViewerControl to the Form
155
+
Controls.Add(pdfViewerControl1)
156
+
'Docking the control to all edges of its containing control and sizing appropriately.
157
+
pdfViewerControl1.Dock = DockStyle.Fill
158
158
159
-
'Loading the document in the PdfViewerControl
160
-
pdfViewerControl1.Load("Sample.pdf")
159
+
'Loading the document in the PdfViewerControl
160
+
pdfViewerControl1.Load(@"../../Sample.pdf")
161
161
162
-
{% endhighlight %}
163
-
{% endtabs %}
162
+
{% endhighlight %}
163
+
{% endtabs %}
164
164
165
165
166
-
{% endtabcontent %}
167
-
168
-
{% endtabcontents %}
166
+
{% endtabcontent %}
167
+
168
+
{% endtabcontents %}
169
169
170
170
171
171
N>[View Sample in GitHub.](https://github.com/syncfusion/pdf-viewer-sdk-winforms-demos/tree/master/pdfviewer/Getting%20Started/Pdf%20Viewer%20Demo)
172
172
173
-
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.
173
+
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.
174
174
175
175
## See Also
176
176
-[Working with PdfViewerControl](./working-with-pdf-viewer)
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/winforms/How-To/Hide-or-Disabling-Toolbar-Buttons.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,18 @@ control: PdfViewerControl
7
7
documentation: ug
8
8
---
9
9
10
-
# Hide or disable the Toolbar Button
10
+
# Hide or disable Toolbar Buttons
11
11
12
12
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.
13
13
14
14
The following code snippet demonstrates how to hide the Open and Save buttons in the WinForms PDF Viewer control.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/winforms/How-To/How-to-make-Winforms-PdfViewer-have-enriched-features-like-WPF-PdfViewer.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ documentation: ug
8
8
---
9
9
# How to Add WPF PdfViewer Features to WinForms PdfViewer
10
10
11
-
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.
11
+
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.
12
12
13
-
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.
13
+
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.
14
14
15
15
## Steps to host the WPF PdfViewer in the WinForms application
16
16
17
-
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.
17
+
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.
18
18
19
-
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)
19
+
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).
20
20
21
21
~~~xaml
22
22
<UserControl
@@ -36,13 +36,15 @@ we can host a WPF PdfViewer control within a Windows Forms application using an
36
36
37
37
{% tabs %}
38
38
{% highlight c# %}
39
+
using System.Windows;
40
+
using System.Windows.Controls;
39
41
40
42
/// <summary>
41
-
/// Interaction logic for PdfViewer.xaml
43
+
/// Interaction logic for PdfViewerUserControl.xaml
42
44
/// </summary>
43
45
public partial class PdfViewerUserControl : UserControl
44
46
{
45
-
public PdfViewer()
47
+
public PdfViewerUserControl()
46
48
{
47
49
InitializeComponent();
48
50
}
@@ -56,7 +58,7 @@ we can host a WPF PdfViewer control within a Windows Forms application using an
56
58
{%endhighlight%}
57
59
{% endtabs %}
58
60
59
-
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.
61
+
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.
60
62
61
63
{% tabs %}
62
64
{% highlight c# %}
@@ -104,4 +106,4 @@ namespace SampleWF
104
106
{%endhighlight%}
105
107
{% endtabs %}
106
108
107
-
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.
109
+
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.
0 commit comments