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
You can move, resize, align, distribute, copy, paste, and undo or redo changes to form fields.
31
+
**Edit Form Fields:**
32
+
Form fields can be moved, resized, aligned, distributed, copied, pasted, and have changes undone or redone.
33
33
34
-
**Set Field Properties**
35
-
You can configure field properties such as name, value, font, color, border, alignment, visibility, tab order, and required or readonly state.
34
+
**Set Field Properties:**
35
+
Field properties such as name, value, font, color, border, alignment, visibility, tab order, and required or read-only state can be configured.
36
36
37
-
**Control Field Behavior**
38
-
You can enable or disable readonly mode, show or hide fields, and control whether fields appear when printing the document.
37
+
**Control Field Behavior:**
38
+
Field behavior can be controlled, including enabling or disabling read-only mode, showing or hiding fields, and determining whether fields appear when printing the document.
39
39
40
-
**Manage Form Fields**
41
-
You can select, group or ungroup, reorder, and delete form fields as needed.
40
+
**Manage Form Fields:**
41
+
Form fields can be selected, grouped or ungrouped, reordered, and deleted as needed.
42
42
43
-
**Save and Print Forms**
43
+
**Save and Print Forms:**
44
44
Designed form fields can be saved into the PDF document and printed with their appearances.
45
45
46
-
## Enable Form Designer
46
+
## Design Forms with UI interaction
47
47
48
-
To enable form design features, inject the [FormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesigner) module into the PDF Viewer. After injecting the module, use the [enableFormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#enableformdesigner) API to show or hide the Form Designer option in the main toolbar.
48
+
When [Form Designer mode](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesigner) is enabled in the Syncfusion [React PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/overview), a default [Form Designer user interface (UI)](https://document.syncfusion.com/demos/pdf-viewer/react/#/tailwind3/pdfviewer/form-designer) is displayed. This UI provides a built in toolbar for adding common form fields such as text boxes, check boxes, radio buttons, drop down lists, and signature fields. Users can place fields on the PDF, select them, resize or move them, and configure their properties using the available editing options, enabling interactive form creation directly within the viewer.
For more information about creating and editing form fields in the PDF Viewer, refer to the [Form Creation](./manage-form-fields/create-form-fields) in React PDF Viewer documentation.
53
+
54
+
### Enable Form Designer
55
+
56
+
Form design features are enabled by injecting the [FormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesigner) module into the PDF Viewer. The [enableFormDesigner](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#enableformdesigner) API controls whether the Form Designer option appears in the main toolbar.
When [Form Designer mode](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesigner) is enabled in the Syncfusion [React PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/react/overview), a default [Form Designer user interface (UI)](https://document.syncfusion.com/demos/pdf-viewer/react/#/tailwind3/pdfviewer/form-designer) is displayed. This UI provides a built in toolbar for adding common form fields such as text boxes, check boxes, radio buttons, drop down lists, and signature fields. Users can place fields on the PDF, select them, resize or move them, and configure their properties using the available editing options, enabling interactive form creation directly within the viewer.
For more information about creating and editing form fields in the PDF Viewer, refer to the [Form Creation](./manage-form-fields/create-form-fields) in React PDF Viewer documentation.
86
-
87
-
## Form Designer Toolbar
85
+
### Form Designer Toolbar
88
86
89
87
The **Form Designer toolbar** appears at the top of the PDF Viewer and provides quick access to form field creation tools. It includes frequently used field types such as:
90
88
@@ -97,205 +95,54 @@ The **Form Designer toolbar** appears at the top of the PDF Viewer and provides
For more information about creating and editing form fields in the PDF Viewer, refer to the [Form Creation in React PDF Viewer documentation](./manage-form-fields/create-form-fields).
98
+
#### Show or Hide the Built-in Form Designer Toolbar
133
99
134
-
## Show or Hide the Built-in Form Designer Toolbar
100
+
The visibility of the Form Designer toolbar is controlled by the [isFormDesignerToolbarVisible()](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#isformdesignertoolbarvisible) method. This method enables the application to display or hide the Form Designer tools based on requirements. Refer to the code example [here](../toolbar-customization/form-designer-toolbar#2-show-or-hide-form-designer-toolbar-at-runtime).
135
101
136
-
You can control the visibility of the Form Designer toolbar using the [isFormDesignerToolbarVisible()](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#isformdesignertoolbarvisible) method. This allows you to display or hide the Form Designer tools in the PDF Viewer based on your application requirements.
137
-
138
-
**Use this method to:**
139
-
- Show the Form Designer toolbar when form design is required
140
-
- Hide the toolbar to provide cleaner viewing experience
141
-
142
-
{% tabs %}
143
-
{% highlight js tabtitle="index.js" %}
144
-
import * as ReactDOM from 'react-dom/client';
145
-
import * as React from 'react';
146
-
import './index.css';
102
+
- The Form Designer toolbar is shown when form design is required.
103
+
- The toolbar can be hidden to provide a cleaner viewing experience.
147
104
148
-
import {
149
-
PdfViewerComponent,
150
-
Toolbar,
151
-
Magnification,
152
-
Navigation,
153
-
Annotation,
154
-
LinkAnnotation,
155
-
ThumbnailView,
156
-
BookmarkView,
157
-
TextSelection,
158
-
TextSearch,
159
-
FormFields,
160
-
FormDesigner,
161
-
Inject
162
-
} from '@syncfusion/ej2-react-pdfviewer';
163
-
164
-
function App() {
165
-
const viewerRef = React.useRef(null);
166
-
167
-
// Show Form Designer Toolbar
168
-
const handleShowDesigner = () => {
169
-
const viewer = viewerRef.current;
170
-
if (viewer) viewer.isFormDesignerToolbarVisible = true;
171
-
};
172
-
173
-
// Hide Form Designer Toolbar
174
-
const handleHideDesigner = () => {
175
-
const viewer = viewerRef.current;
176
-
if (viewer) viewer.isFormDesignerToolbarVisible = false;
177
-
};
178
-
179
-
return (
180
-
<div>
181
-
<div style={{ marginBottom: '12px' }}>
182
-
<buttononClick={handleShowDesigner}>Show Form Designer Toolbar</button>
The Form Designer toolbar can be customized by specifying the tools to display and arranging them in the required order using the [FormDesignerToolbarItems](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesignertoolbaritem) property.
219
108
220
-
## Customize the Built-in Form Designer Toolbar
221
-
222
-
You can customize the Form Designer toolbar by specifying the tools to display and arranging them in the required order using the [FormDesignerToolbarItems](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/formdesignertoolbaritem) property.
223
-
224
-
This customization helps you limit the available tools and simplify the user interface.
109
+
This customization helps limit the available tools and simplify the user interface. A code example is available [here](../toolbar-customization/form-designer-toolbar#3-show-or-hide-form-designer-toolbar-items).
225
110
226
111
**Key Points**
227
-
-Include only the toolbar items you need, in the exact order you specify.
112
+
-Only the toolbar items listed are included, in the exact order specified.
228
113
- Any toolbar items not listed remain hidden, resulting in a cleaner and more focused UI.
Each toolbar item in form designer toolbar allows users to place the corresponding form field by selecting the tool and clicking on the desired location in the PDF document.

278
120
279
-
## Move, Resize, and Edit Form Fields
121
+
For more information about creating form fields in the PDF Viewer, refer to the [Form Creation in React PDF Viewer documentation](./manage-form-fields/create-form-fields#create-form-fields-using-the-form-designer-ui).
280
122
281
-
You can move, resize, and edit an existing form field directly in the PDF Viewer using the Form Designer.
123
+
### Move, Resize, and Edit Form Fields
282
124
283
-
- Move a field by selecting it and dragging it to the required position.
125
+
Fields can be moved, resized, and edited directly in the PDF Viewer using the Form Designer.
284
126
285
-
- Resize a field using the handles displayed on the field boundary.
127
+
- A field is moved by selecting it and dragging it to the required position.
128
+
129
+
- Fields are resized using the handles displayed on the field boundary.
286
130
287
131

288
132
289
-
-Edit a field by selecting it to open the Form Field Properties popover. The popover allows you to modify the form field and widget annotation properties. Changes are reflected immediately in the viewer and are saved when the properties popover is closed.
133
+
-Selecting a field opens the Form Field Properties popover, which allows modification of the form field and widget annotation properties. Changes are reflected immediately in the viewer and are saved when the properties popover is closed.
290
134
For more information, see Editing Form Fields
291
135
292
-
## Deleting Form Fields
136
+
### Edit Form Field properties
137
+
138
+
The **Properties** panel lets you customize the styles of form fields. Open the panel by selecting the **Properties** option in a field's context menu.
139
+
140
+

141
+
142
+
### Deleting Form Fields
293
143
294
-
You can remove a form field from the PDF document by selecting the field and using one of the following methods:
295
-
- Click the `Delete option` in the Form Designer UI.
296
-
- Press the `Delete key` on the keyboard after selecting the form field.
144
+
A form field is removed by selecting it and either clicking the `Delete` option in the Form Designer UI or pressing the `Delete` key on the keyboard. The selected form field and its associated widget annotation are permanently removed from the page.
297
145
298
-
The selected form field and its associated widget annotation are permanently removed from the page.
299
146
For more information, see [Deleting Form Fields](./manage-form-fields/remove-form-fields)
0 commit comments