Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit d34ab7b

Browse files
author
Nicolas Schäfli
committed
Describe new features in reference documentation
1 parent eeddfaa commit d34ab7b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/reference-documentation.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,38 @@ The Eraser can only remove strokes made with the Freehand tool.
306306
In order to remove a stroke, the eraser tool needs to be activated
307307
and the stroke needs to be crossed with the mouse while the mouse is pressed.
308308

309+
### Selection
310+
311+
**Limitations:**
312+
* The selected element can not be moved from one page to another.
313+
* Multiselection is currently not supported.
314+
315+
The selection can be used to select forms or drawings.
316+
317+
An element selection supports the following operations:
318+
* Resizing
319+
* Repositioning
320+
* Color change of the element (Fill & Border)
321+
* Change of the drawing sequence (z axis)
322+
323+
### Forms
324+
The forms tool places form elements onto the document which may be transformed with the selection tool.
325+
326+
Currently there are four types of forms supported:
327+
* Rectangles
328+
* Ellipse
329+
* Circles
330+
* Lines
331+
332+
Forms can be placed with the forms tool located in the *toolbox*.
333+
334+
```typescript
335+
pdf.toolbox.forms.circle.fillColor = colorFromHex("#F006");
336+
pdf.toolbox.forms.circle.borderColor = colorFromHex("#0F06");
337+
pdf.toolbox.forms.circle.create();
338+
pdf.toolbox.forms.circle.create(); // Will have the same colors then the first circle.
339+
```
340+
309341
## Using the highlighting
310342

311343
**Limitations:**

0 commit comments

Comments
 (0)