Skip to content

Commit 77501c5

Browse files
ntachevadimodiikoevska
authored
PDFViewer Annotations Documentation (#2429)
* docs(pdfviewer): Annotation documentation * chore(PDFViewer): add more details in the annotation docs * chore(PDFViewer): docs update * Update components/pdfviewer/toolbar.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/toolbar.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/annotations.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/annotations.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/annotations.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/annotations.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/toolbar.md Co-authored-by: Dimo Dimov <[email protected]> * Update components/pdfviewer/toolbar.md * Update components/pdfviewer/toolbar.md * chore(PDFViewer): updates * chore(PDFViewer): minor update * Update components/pdfviewer/annotations.md Co-authored-by: Iva Stefanova Koevska-Atanasova <[email protected]> * Update components/pdfviewer/annotations.md Co-authored-by: Iva Stefanova Koevska-Atanasova <[email protected]> * Update upgrade/rendering-changes/6-3-0.md Co-authored-by: Iva Stefanova Koevska-Atanasova <[email protected]> * chore(PdfViewer): final update --------- Co-authored-by: Dimo Dimov <[email protected]> Co-authored-by: Iva Stefanova Koevska-Atanasova <[email protected]>
1 parent c3f79ec commit 77501c5

File tree

10 files changed

+139
-10
lines changed

10 files changed

+139
-10
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Annotations
3+
page_title: PdfViewer - Annotations
4+
description: Annotations in the PdfViewer for Blazor. How to add and configure annotations in the PdfViewer for Blazor
5+
slug: pdfviewer-annotations
6+
tags: telerik,blazor,pdf,pdfviewer,annotations
7+
published: True
8+
position: 15
9+
---
10+
11+
# PdfViewer Annotations
12+
13+
The PdfViewer supports a set of annotation types to enhance PDF documents. For example, users can highlight important text areas or add notes as free text.
14+
15+
The PdfViewer creates a dedicated layer for the annotations and includes them when downloading or printing the file. If the user opens a file with annotations, they can edit only the annotations that were added using the PdfViewer `Annotations` tool. The PdfViewer does not support editing annotations added in a different PDF editor.
16+
17+
To add and manage the annotations, the user can click on the dedicated button in the [PdfViewer Toolbar]({%slug pdfviewer-toolbar%}). It opens an annotations bar with the available annotation types.
18+
19+
## Supported Annotations
20+
21+
The PdfViewer provides the following annotation types:
22+
23+
@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout)
24+
25+
| Annotation Type | Description |
26+
| --- | --- |
27+
| **Text Highlight** | Allows highlighting the selected text in the document. Users can choose the desired highlight color. |
28+
| **Free Text** | Allows creating an element with free text anywhere in the document. Provides option to select the desired text color and font size. |
29+
30+
## Working with Annotations
31+
32+
**To manage the annotations the user should:**
33+
34+
1. Click on the `Annotations` tool in the [Toolbar]({%slug pdfviewer-toolbar%}) to open the Annotations bar with the available annotation types.
35+
1. Click the desired annotation type to toggle it. You need to first "turn on" the annotation tool to add or edit annotations of the corresponding type. If none of the annotation tools are enabled, the PdfViewer will not allow interacting with the document to create or edit annotations.
36+
37+
**From this point the user can:**
38+
39+
1. **Create an annotation**&mdash;The user can select a non-annotated text to highlight it or they can click an area that does not have free text element to create an annotation. Once they create the annotation, a popup with the available customization options will appear.
40+
1. **Edit an existing annotation**&mdash;The user can edit one or multiple annotations at a time but they all must be of the same type. To select multiple annotations, the user can hold `Ctrl` and click on all annotations they want to edit.
41+
* To edit color and font size the user can click the annotation they want to edit to open the customization popup.
42+
* To edit the text in the `Free Text` annotation element, the user can double-click the element to open the textbox for editing.
43+
* To move the `Free Text` annotation element the user can click it to enable the drag tool and start dragging.
44+
1. **Delete an existing annotation**&mdash;The user can click the annotation they want to delete to open the customization popup. Pressing the delete button in the customization popup will open a delete confirmation dialog where the user can confirm or cancel the annotation deletion.
45+
46+
## Disabling Annotations
47+
48+
The Annotations tool is included in the [Toolbar]({%slug pdfviewer-toolbar%}) by default. To prevent users from creating annotations, you can [configure the Toolbar and not include the `PdfViewerToolBarAnnotationsTool`]({%slug pdfviewer-toolbar%}#toolbar-configuration).
49+
50+
## See Also
51+
52+
* [PdfViewer Live Demo](https://demos.telerik.com/blazor-ui/pdfviewer/overview)
53+
* [PdfViewer Toolbar]({%slug pdfviewer-toolbar%})

components/pdfviewer/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ The [PdfViewer toolbar can render built-in and custom tools]({%slug pdfviewer-to
5959
* Search and select text
6060
* Print, download and open local PDF files
6161

62+
## Annotations
63+
64+
The PdfViewer provides a built-in option for creating and editing annotations. Explore the [available annotation types and how to work with them]({%slug pdfviewer-annotations%}).
6265

6366
## Large File Support
6467

components/pdfviewer/toolbar.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,29 @@ The [Blazor PDF Viewer](https://demos.telerik.com/blazor-ui/pdfviewer/overview)
1717

1818
By default, the [Blazor PDF Viewer](https://demos.telerik.com/blazor-ui/pdfviewer/overview) displays all its built-in tools in the order below. Use the *tool tag* if you need to define a tool explicitly in a [custom toolbar configuration](#toolbar-configuration).
1919

20+
### Command Tools
21+
2022
@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout)
2123

2224
| Tool Name | Tool Tag | Description |
2325
| --- | --- | --- |
26+
| Open | `PdfViewerToolBarOpenTool` | An open command that shows in a submenu upon a hamburger menu click. Fires the [`OnOpen` event]({%slug pdfviewer-events%}#onopen). |
27+
| Download | `PdfViewerToolBarDownloadTool` | A download command that shows in a submenu upon a hamburger menu click. Fires the [`OnDownload` event]({%slug pdfviewer-events%}#ondownload). |
28+
| Print | `PdfViewerToolBarPrintTool` | A print command that shows in a submenu upon a hamburger menu click. The component also provides a [`Print` method]({%slug pdfviewer-overview%}#pdfviewer-reference-and-methods). Printing uses an additional browser window with only the PDF document inside. This window may require user confirmation or appropriate browser settings to display. |
2429
| Pager | `PdfViewerToolBarPagerTool` | A pager to navigate the PDF document via automatic scrolling. Paging requires the [`Height` parameter]({%slug pdfviewer-overview%}#pdfviewer-parameters) to be set, otherwise the component expands and doesn't have its own scrollbar. |
2530
| Zoom | `PdfViewerToolBarZoomTool` | Zoom in and zoom out buttons with an additional dropdown with common options (Fit to page, Fit to width, 100%, etc.) |
2631
| Selection | `PdfViewerToolBarSelectionTool` | Two toggle buttons that enable either text selection or panning. |
2732
| Search | `PdfViewerToolBarSearchTool` | A search button. It opens an additional search bar that contains a textbox and arrow buttons to navigate the search results. |
28-
| Open | `PdfViewerToolBarOpenTool` | An open button. It fires the [`OnOpen` event]({%slug pdfviewer-events%}#onopen). |
29-
| Download | `PdfViewerToolBarDownloadTool` | A download button. It fires the [`OnDownload` event]({%slug pdfviewer-events%}#ondownload). |
30-
| Print | `PdfViewerToolBarPrintTool` | A print button. The component also provides a [`Print` method]({%slug pdfviewer-overview%}#pdfviewer-reference-and-methods). Printing uses an additional browser window with only the PDF document inside. This window may require user confirmation or appropriate browser settings to display. |
33+
| Annotations | `PdfViewerToolBarAnnotationsTool` | A button that toggles the Annotations bar. Explore the [available annotation types and how to work with them]({%slug pdfviewer-annotations%}). |
34+
35+
### Layout Tools
3136

32-
By default, the toolbar also includes separators (`<PdfViewerToolBarSeparator />`) and spacers (`<PdfViewerToolBarSpacer />`). Separators render as a vertical line. Spacers consume the available empty space and push the rest of the tools next to one another.
37+
@[template](/_contentTemplates/common/parameters-table-styles.md#table-layout)
3338

39+
| Tool Name | Tool Tag | Description |
40+
| --- | --- | --- |
41+
| Separator | `PdfViewerToolBarSeparator` | Renders a vertical line. This is not included in the Toolbar by default but you can use it to visually separate the desired tools. |
42+
| Spacer | `PdfViewerToolBarSpacer` | Consumes the available empty space and pushes the rest of the tools next to one another. |
3443

3544
## Custom Tools
3645

upgrade/rendering-changes/3-4-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ Previous to the 3.4.0 version we used `k-state-*` CSS classes to denote that the
3333

3434
## See also
3535

36-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
36+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)
3737

upgrade/rendering-changes/3-6-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ position: 995
9999

100100
## See also
101101

102-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
102+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

upgrade/rendering-changes/4-0-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ The following changes are applicable when `AutoUpload = "false"`, so the **Clear
241241

242242
## See Also
243243

244-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
244+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

upgrade/rendering-changes/4-3-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ Such dialogs are any edit forms, filter menus, column menus, editor's tools, as
128128

129129
## See Also
130130

131-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
131+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

upgrade/rendering-changes/4-6-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ Removed the `k-filter-toolbar-item` CSS class from the `<div class="k-toolbar-it
7272

7373
## See Also
7474

75-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
75+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

upgrade/rendering-changes/6-0-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,4 +587,4 @@ The child `div` of the TreeView item container (`li.k-treeview-item > div`) rend
587587

588588
## See Also
589589

590-
* [Use best practives when overriding theme styles]({%slug themes-override%}#best-practices)
590+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

upgrade/rendering-changes/6-3-0.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: 6.3.0
3+
description: Handle the rendering changes in the 6.3.0 release of the Telerik UI for Blazor components.
4+
page_title: Rendering Changes in the 6.3.0 Release
5+
slug: changes-in-6-3-0
6+
position: 970
7+
---
8+
9+
# Rendering Changes in 6.3.0
10+
11+
* [AIPrompt](#aiprompt)
12+
* [Gantt](#gantt)
13+
* [Menu](#menu)
14+
* [PDFViewer](#pdfviewer)
15+
* [Signature](#signature)
16+
* [TabStrip](#tabstrip)
17+
* [TreeList](#treelist)
18+
19+
## AIPrompt
20+
21+
1. The view buttons in the toolbar are now fully rounded (`k-rounded-md` class is replaced with `k-rounded-full`). The same applies to the `Generate` button.
22+
2. The output view, which contains the `<div class="k-card-list">` element, is now wrapped in a `<div>` element with class `k-prompt-view`.
23+
3. The copy button in the output view is now styled as primary.
24+
25+
## Gantt
26+
27+
1. The `k-gantt-content` class is now applied to a `<div>` wrapper element that encloses the Gantt Splitter.
28+
2. The Splitter component class (`k-splitter` element) is now changed from `k-grid-content` to `k-grid-splitter`.
29+
3. The `<div class="k-gantt-tables">` element no longer includes the `k-user-select-none` class.
30+
4. The `<table class="k-gantt-rows">` element now also has a `k-grid-table` class.
31+
5. The `<span class="k-spacer">` element in the toolbar no longer has the `k-toolbar-spacer` class.
32+
6. The `<div class="k-gantt-views">` button group / select element is now wrapped in a `<div>` with class `k-gantt-views-wrapper`.
33+
34+
## Menu
35+
36+
1. The menu item elements (`<span class="k-link">`) no longer include the `k-in` class.
37+
2. The `<ul class="k-menu-group">` element no longer includes the `k-reset` and `k-group` classes.
38+
39+
## PDFViewer
40+
41+
The `Open`, `Download` and `Print` tools have been moved to a submenu toggled on click of a hamburger menu on the leftmost side of the Toolbar.
42+
43+
## Signature
44+
45+
1. When maximized, the Signature now renders a `k-signature-maximized` class.
46+
2. The fill mode class is now applied based on the `FillMode` parameter (appearance settings).
47+
48+
## TabStrip
49+
50+
1. The active (currently selected) tabs now render only the `k-active` class. The `k-tab-on-top` class is no longer applied.
51+
2. The inactive tabs no longer include the `k-state-default` class.
52+
3. The scroll buttons (prev & next) now render the `k-tabstrip-prev` and `k-tabstrip-next` classes, respectively.
53+
4. The `k-pos-relative` class is no longer applied to the `<div class="k-tabstrip">` element. The component now receives an inline `position: relative` style instead.
54+
55+
## TreeList
56+
57+
1. The `k-cursor-pointer` class is removed from the `<span class="k-treelist-toggle">` element (toggle row icon).
58+
2. The `<table class="k-table">` element rendered in the `<div class="k-grid-header-wrap">` element now also has the `k-grid-header-table` class.
59+
3. The `<table class="k-table">` element rendered in the `<div class="k-grid-content">` element now also includes a size class (appearance settings).
60+
4. The `k-filterable` class in the table header cells is now rendered only when the column is filterable and has either a filter menu or column menu.
61+
62+
## See Also
63+
64+
* [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices)

0 commit comments

Comments
 (0)