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
title: Form Designer and Toolbar Customization in TypeScript | Syncfusion
4
-
description: Learn here all about form designer and toolbar in Syncfusion TypeScript PDF Viewer of Syncfusion Essential JS 2 and more.
3
+
title: Form Designer and Toolbar Customization in Vue | Syncfusion
4
+
description: Learn here all about form designer and toolbar in the Syncfusion Vue PDF Viewer and how to customize the form designer UI and toolbar.
5
5
platform: document-processing
6
6
control: PDF Viewer
7
7
documentation: ug
8
8
domainurl: ##DomainURL##
9
9
---
10
10
11
-
# Form Designer in TypeScript PDF Viewer
11
+
# Form Designer in Vue PDF Viewer
12
12
13
13
When **Form Designer mode** is enabled in the Syncfusion [TypeScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/overview), a default [Form Designer user interface (UI)](https://document.syncfusion.com/demos/pdf-viewer/javascript/#/tailwind3/pdfviewer/formdesigner.html) is displayed. This UI includes a built in toolbar for adding form fields such as text boxes, password fields, check boxes, radio buttons, drop down lists, list boxes, and signature and initial fields.
14
14
@@ -45,48 +45,59 @@ Designed form fields can be saved into the PDF document and printed with their a
45
45
46
46
## Enable Form Designer
47
47
48
-
To enable form design features, inject the [FormDesigner](https://ej2.syncfusion.com/documentation/api/pdfviewer/formdesigner) module into the PDF Viewer. After injecting the module, use the [enableFormDesigner](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#enableformdesigner) API to show or hide the Form Designer option in the main toolbar.
49
-
50
-
```ts
48
+
To enable form design features, inject the [FormDesigner](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/formdesigner) module into the PDF Viewer. After injecting the module, use the [enableFormDesigner](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/index-default#enableformdesigner) API to show or hide the Form Designer option in the main toolbar.
49
+
50
+
{% tabs %}
51
+
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
When [Form Designer mode](https://ej2.syncfusion.com/documentation/api/pdfviewer/formdesigner) is enabled in the Syncfusion [TypeScript PDF Viewer](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/overview), a default [Form Designer user interface (UI)](https://document.syncfusion.com/demos/pdf-viewer/javascript/#/tailwind3/pdfviewer/formdesigner.html) is displayed. This UI provides a builtin 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.
94
+
When [Form Designer mode](https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/formdesigner) is enabled in the PDF Viewer, a default Form Designer user interface (UI) 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 TypeScript PDF Viewer documentation.
100
+
For more information about creating and editing form fields in the PDF Viewer, refer to [Create form fields](./manage-form-fields/create-form-fields).
90
101
91
102
## Form Designer Toolbar
92
103
@@ -103,91 +114,127 @@ The **Form Designer toolbar** appears at the top of the PDF Viewer and provides
103
114
104
115
Each toolbar item allows users to place the corresponding form field by selecting the tool and clicking on the desired location in the PDF document.
105
116
106
-

117
+

118
+
119
+
Use the Vue example above to enable the Form Designer (see the Composition API sample).
120
+
121
+
For more information about creating and editing form fields in the PDF Viewer, refer to [Create form fields](./manage-form-fields/create-form-fields).
107
122
108
-
Use the following Code-snippet to enable Form Designer by injecting **Form Designer mode** Module.
123
+
## Show or Hide the Built-in Form Designer Toolbar
124
+
125
+
You can control the visibility of the Form Designer toolbar using the [isFormDesignerToolbarVisible()](https://ej2.syncfusion.com/vue/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.
126
+
127
+
**Use this method to:**
128
+
- Show the Form Designer toolbar when form design is required
129
+
- Hide the toolbar to provide cleaner viewing experience
109
130
110
-
```ts
131
+
{% tabs %}
132
+
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
133
+
<template>
134
+
<div>
135
+
<button @click="showDesigner">Show Form Designer Toolbar</button>
136
+
<button @click="hideDesigner">Hide Form Designer Toolbar</button>
For more information about creating and editing form fields in the PDF Viewer, refer to the [Form Creation in TypeScript PDF Viewer documentation](./manage-form-fields/create-form-fields).
142
-
143
-
## Show or Hide the Built-in Form Designer Toolbar
144
-
145
-
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.
146
-
147
-
**Use this method to:**
148
-
- Show the Form Designer toolbar when form design is required
149
-
- Hide the toolbar to provide cleaner viewing experience
150
-
151
-
```html
152
-
<!-- Buttons to toggle the Form Designer toolbar -->
153
-
<buttonid="showDesignerBtn">Show Form Designer Toolbar</button>
154
-
<buttonid="hideDesignerBtn">Hide Form Designer Toolbar</button>
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/documentation/api/pdfviewer/formdesignertoolbaritem) property.
180
+
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/vue/documentation/api/pdfviewer/formdesignertoolbaritem) property.
169
181
170
182
This customization helps you limit the available tools and simplify the user interface.
171
183
172
184
**Key Points**
173
185
- Include only the toolbar items you need, in the exact order you specify.
174
186
- Any toolbar items not listed remain hidden, resulting in a cleaner and more focused UI.
175
187
176
-
```ts
177
-
//Customize the Built-in Form Designer Toolbar
178
-
pdfviewer.toolbarSettings= {
179
-
formDesignerToolbarItems: [
180
-
"TextboxTool",
181
-
"PasswordTool",
182
-
"CheckBoxTool",
183
-
"RadioButtonTool",
184
-
"DropdownTool",
185
-
"ListboxTool",
186
-
"DrawSignatureTool",
187
-
"DeleteTool"
188
-
]
188
+
{% tabs %}
189
+
{% highlight html tabtitle="Composition API (~/src/App.vue)" %}
@@ -197,7 +244,7 @@ You can move, resize, and edit an existing form field directly in the PDF Viewer
197
244
198
245
- Resize a field using the handles displayed on the field boundary.
199
246
200
-

247
+

201
248
202
249
- 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.
0 commit comments