Skip to content

Commit 1dd9ac7

Browse files
Merge branch 'development' into EJ2-1011162-new-dev
2 parents c4ea49c + 8b332a3 commit 1dd9ac7

28 files changed

Lines changed: 1423 additions & 354 deletions

Document-Processing-toc.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,10 @@
898898
<li>
899899
Environment Integration
900900
<ul>
901-
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/preact">Preact</a></li>
902-
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/nextjs-getting-started">NextJS</a></li>
901+
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/nextjs-getting-started">NextJS</a></li>
902+
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/share-point">SharePoint Framework (SPFx)</a></li>
903+
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/preact">Preact</a></li>
904+
<li><a href="/document-processing/pdf/pdf-viewer/react/depoyment-integration/remix">Remix</a></li>
903905
</ul>
904906
</li>
905907
<li><a href="/document-processing/pdf/pdf-viewer/react/feature-module">Feature Modules</a></li>
@@ -1026,6 +1028,13 @@
10261028
<li><a href="/document-processing/pdf/pdf-viewer/react/text-selection">Text Selection</a></li>
10271029
<li><a href="/document-processing/pdf/pdf-viewer/react/globalization">Globalization</a></li>
10281030
<li><a href="/document-processing/pdf/pdf-viewer/react/accessibility">Accessibility</a></li>
1031+
<li><a href="/document-processing/pdf/pdf-viewer/react/theming-and-styling">Theming and Styling</a></li>
1032+
<li><a href="/document-processing/pdf/pdf-viewer/react/context-menu/context-menu">Context Menu</a>
1033+
<ul>
1034+
<li><a href="/document-processing/pdf/pdf-viewer/react/context-menu/builtin-context-menu">Built-in Context Menu</a></li>
1035+
<li><a href="/document-processing/pdf/pdf-viewer/react/context-menu/custom-context-menu">Customize Context Menu</a></li>
1036+
</ul>
1037+
</li>
10291038
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to-overview">How to</a>
10301039
<ul>
10311040
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/load-document">Load the PDF documents dynamically</a></li>
@@ -1049,7 +1058,6 @@
10491058
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/retry-timeout">Retry Timeout</a></li>
10501059
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/load-n-number-page">Load N number of pages on initial loading</a></li>
10511060
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/conformance">Supported conformance documents</a></li>
1052-
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/custom-context-menu">Customize context menu</a></li>
10531061
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/pagerenderstarted-pagerendercompleted-event">PageRenderInitiate and PageRenderComplete event</a></li>
10541062
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/open-bookmark">Open and Close Bookmark pane programmatically</a></li>
10551063
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/signatureselect-signatureunselect">SignatureSelect and SignatureUnselect event</a></li>
@@ -1074,6 +1082,7 @@
10741082
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/show-hide-annotation">Show and Hide Annotation</a></li>
10751083
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/enable-text-selection">Dynamically Enable or Disable Text Selection</a></li>
10761084
<li><a href="/document-processing/pdf/pdf-viewer/react/how-to/load-document-after-resources-loaded">Load document after resources loaded</a></li>
1085+
<li><a href="/document-Processing/pdf/pdf-viewer/react/how-to/existing-react-layout">Integrate PDF Viewer into existing react layout</a></li>
10771086
</ul>
10781087
</li>
10791088
<li>Troubleshooting

Document-Processing/PDF/PDF-Viewer/blazor/organize-pages/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ Changes in the organizer are reflected in the viewer immediately. Use **Save** t
100100
Width="100%" PageOrganizerVisibility="true">
101101
</SfPdfViewer2>
102102

103-
{% tabs %}
104-
{% highlight razor %}
103+
{% endhighlight %}
104+
{% endtabs %}
105105

106106
- `PageOrganizerSettings` — controls available actions and thumbnail zoom settings. Common properties:
107107

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
layout: post
3+
title: Built-in Context Menu in React PDF Viewer | Syncfusion
4+
description: Explore the default context menu items in the React PDF Viewer, including options for text selection, annotations, and form fields.
5+
control: PDF Viewer
6+
platform: document-processing
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Built-in Context Menu Items in React PDF Viewer
12+
13+
The React PDF Viewer includes a context-sensitive menu that updates dynamically based on the right-clicked element within the document. This page lists the default menu items available for different document elements.
14+
15+
## Context Menu Scenarios
16+
17+
Menu items vary depending on the target element:
18+
19+
* **Text**: Displays options to annotate and copy selected text.
20+
21+
![context menu on text](../images/context-menu-text.png)
22+
23+
* **Annotations**: Provides options to copy, cut, paste, or remove annotations, and add comments.
24+
25+
![context menu on annotation](../images/context-menu-annotation.png)
26+
27+
* **Form Fields**: Shows standard form field interactions, such as modifying properties. The context menu for form fields appears only when the viewer is in **designer mode**.
28+
29+
![context menu on form fields](../images/context-menu-forms.png)
30+
31+
* **Empty Space**: Displays the option to paste a previously copied annotation or form field.
32+
33+
![context menu on empty space](../images/context-menu-empty.png)
34+
35+
## Default Item Reference
36+
37+
### Text Menu Items
38+
39+
The following table describes the default items available when right-clicking selected text:
40+
41+
| Item | Description |
42+
| :--- | :--- |
43+
| **Copy** | Copies selected text to the clipboard. |
44+
| **Highlight** | Highlights selected text using the default highlight color. |
45+
| **Underline** | Applies an underline to the selected text. |
46+
| **Strikethrough** | Applies a strikethrough to the selected text. |
47+
| **Squiggly** | Applies a squiggly underline to the selected text. |
48+
| **Redact Text** | Redacts the selected text. |
49+
50+
### Annotation Menu Items
51+
52+
The following items are available when interacting with annotations:
53+
54+
| Item | Description |
55+
| :--- | :--- |
56+
| **Copy** | Copies the selected annotation for pasting within the same page. |
57+
| **Cut** | Removes the selected annotation and copies it to the clipboard. |
58+
| **Paste** | Pastes a previously copied or cut annotation. |
59+
| **Delete** | Permanently removes the selected annotation. |
60+
| **Comments** | Opens the comment panel to manage discussions on the annotation. |
61+
62+
### Form Field Menu Items
63+
64+
These items appear when the viewer is in designer mode and a form field is selected:
65+
66+
| Item | Description |
67+
| :--- | :--- |
68+
| **Copy** | Copies the selected form field for duplication. |
69+
| **Cut** | Removes the selected form field for relocation. |
70+
| **Paste** | Pastes a copied or cut form field. |
71+
| **Delete** | Removes the selected form field from the document. |
72+
| **Properties** | Launches the properties dialog for the specific form field. |
73+
74+
N> The availability of the context menu is a client-side feature and is independent of server configurations.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: post
3+
title: Context Menu in React PDF Viewer | Syncfusion
4+
description: Learn about the contextual menu options in the Syncfusion React PDF Viewer, including default behavior and customization possibilities.
5+
control: PDF Viewer
6+
platform: document-processing
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Context Menu in React PDF Viewer
12+
13+
The React PDF Viewer provides a built-in context menu for interacting with text, annotations, form fields, and document elements. This feature enhances the user experience by offering quick access to relevant actions based on the current selection or the specific area of the document being interacted with.
14+
15+
## Understanding the Context Menu
16+
17+
The context menu is designed to be context-aware, meaning it dynamically updates its items based on the target element. For instance, right-clicking on selected text will show annotation options, while right-clicking on an annotation will display management options like copy, cut, and delete.
18+
19+
### Core Capabilities
20+
21+
The context menu supports several configurations:
22+
23+
* **Default Behavior**: Provides standard actions such as cut, copy, and annotation management.
24+
* **Customization**: Allows adding new menu items, removing default ones, or reordering them to meet specific application requirements.
25+
* **Granular Control**: Developers can fully disable the menu or replace it with custom logic using events.
26+
27+
### Client-side Interaction
28+
29+
The availability and behavior of the context menu are governed primarily by client-side logic. It is not affected by server-side configurations or cloud environments, ensuring consistent performance across different deployment scenarios.
30+
31+
## Further Reading
32+
33+
* [Built-in Context Menu](builtin-context-menu) – A technical reference for default menu behavior and items.
34+
* [Customize Context Menu](custom-context-menu) – A guide on how to implement custom menu items and dynamic updates.

0 commit comments

Comments
 (0)