-
Notifications
You must be signed in to change notification settings - Fork 79
PDFViewer Annotations Documentation #2429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a57edc2
docs(pdfviewer): Annotation documentation
ntacheva 1ab1c24
chore(PDFViewer): add more details in the annotation docs
ntacheva 4d18f5f
chore(PDFViewer): docs update
ntacheva 6f854ed
Update components/pdfviewer/toolbar.md
ntacheva d2fbe94
Update components/pdfviewer/toolbar.md
ntacheva cbdd9c5
Update components/pdfviewer/annotations.md
ntacheva 1ecb19d
Update components/pdfviewer/annotations.md
ntacheva 9e839b4
Update components/pdfviewer/annotations.md
ntacheva 07e16e6
Update components/pdfviewer/annotations.md
ntacheva bcb7fff
Update components/pdfviewer/toolbar.md
ntacheva 0141549
Update components/pdfviewer/toolbar.md
ntacheva 13df49c
Update components/pdfviewer/toolbar.md
ntacheva 1cb1ec0
chore(PDFViewer): updates
ntacheva b7bfc5b
chore(PDFViewer): minor update
ntacheva e48317c
Update components/pdfviewer/annotations.md
ntacheva 0fff161
Update components/pdfviewer/annotations.md
ntacheva aab8a63
Update upgrade/rendering-changes/6-3-0.md
ntacheva 93c3948
chore(PdfViewer): final update
ntacheva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| title: Annotations | ||
| page_title: PdfViewer - Annotations | ||
| description: Annotations in the PDF Viewer for Blazor. How to add and configure annotations in the PDF Viewer for Blazor | ||
| slug: pdfviewer-annotations | ||
| tags: telerik,blazor,pdf,pdfviewer,annotations | ||
| published: True | ||
| position: 15 | ||
| --- | ||
|
|
||
| # PdfViewer Annotations | ||
|
|
||
| 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. | ||
|
|
||
| The PDFViewer creates a dedicated layer for the annotations and includes them when downloading or printing the file. When downloading a file with annotations and opening it again, the PDFViewer allows editing the previously created annotations. | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| To add and manage the annotations, the user can click on the dedicated button in the [PDF Viewer Toolbar]({%slug pdfviewer-toolbar%}). It opens an annotations bar with the available annotation types. | ||
|
|
||
| ## Supported Annotations | ||
|
|
||
| The PDFViewer provides the following annotation types: | ||
|
|
||
| @[template](/_contentTemplates/common/parameters-table-styles.md#table-layout) | ||
|
|
||
| | Annotation Type | Description | | ||
| | --- | --- | | ||
| | **Text Highlight** | Allows highlighting the selected text in the document. Users can choose the desired highlight color. | | ||
| | **Free Text** | Allows creating an element with free text anywhere in the document. Provides option to select the desired text color and font size. | | ||
ntacheva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## Working with Annotations | ||
|
|
||
| >caption To manage the annotations the user should: | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. Click on the `Annotations` tool in the [Toolbar]({%slug pdfviewer-toolbar%}) to open the Annotations bar with the available annotation types. | ||
| 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. | ||
|
|
||
| >caption From this point the user can: | ||
|
|
||
| 1. **Create an annotation** - for that purpose the user can select a non-annotated text to highlight it or click on an area that does not have free text element to create one. Once they create the annotation, a popup with the available customization options will appear. | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 1. **Edit an existing annotation** - 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. | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * To edit color and font size the user can click on the annotation they want to edit to open the customization popup. | ||
| * To edit the text in the `Free Text` annotation element, the user can double click the element to open the textbox for editing. | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * To move the `Free Text` annotation element the user can click on it to enable the drag tool and start dragging. | ||
| 1. **Delete an existing annotation** - for that purpose the user can click on 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. | ||
|
|
||
| ## Disabling Annotations | ||
|
|
||
| The Annotations tool is included in the [Toolbar]({%slug pdfviewer-toolbar%}) by default. To prevent the users from creating annotations, you can [configure the Toolbar and not include the `PdfViewerToolBarAnnotationsTool`]({%slug pdfviewer-toolbar%}#toolbar-configuration). | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## See Also | ||
|
|
||
| * [PdfViewer Live Demo](https://demos.telerik.com/blazor-ui/pdfviewer/overview) | ||
| * [PdfViewer Toolbar]({%slug pdfviewer-toolbar%}) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| --- | ||
| title: 6.3.0 | ||
ntacheva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| description: Handle the rendering changes in the 6.3.0 release of the Telerik UI for Blazor components. | ||
| page_title: Rendering Changes in the 6.3.0 Release | ||
| slug: changes-in-6-3-0 | ||
| position: 970 | ||
| --- | ||
|
|
||
| # Rendering Changes in 6.3.0 | ||
ntacheva marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| * [AIPrompt](#aiprompt) | ||
| * [Gantt](#gantt) | ||
| * [Menu](#menu) | ||
| * [PDFViewer](#pdfviewer) | ||
| * [Signature](#signature) | ||
| * [TabStrip](#tabstrip) | ||
| * [TreeList](#treelist) | ||
|
|
||
| ## AIPrompt | ||
|
|
||
| 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. | ||
| 2. The output view, which contains the `k-card-list` element, is now wrapped in a `div` element with the class `k-prompt-view`. | ||
| 3. The copy button in the output view is now styled as primary. | ||
|
|
||
| ## Gantt | ||
|
|
||
| 1. The `k-gantt-content` class is now applied to a wrapper `div` element that encloses the Gantt Splitter. | ||
| 2. The Splitter component class (`k-splitter` element) is now changed from `k-grid-content` to `k-grid-splitter`. | ||
| 3. The `k-gantt-tables` element no longer includes the `k-user-select-none` class. | ||
| 4. The `k-gantt-rows` element now also has a `k-grid-table` class. | ||
| 5. The `k-spacer` element in the toolbar no longer has the `k-toolbar-spacer` class. | ||
| 6. The `k-gantt-views` button group / select element is now wrapped in a `div` with the `k-gantt-views-wrapper` class. | ||
|
|
||
| ## Menu | ||
|
|
||
| 1. The menu item elements (`k-link`) no longer include the `k-in` class. | ||
| 2. The `k-menu-group` elements no longer include the `k-reset` and `k-group` classes. | ||
|
|
||
| ## PDFViewer | ||
|
|
||
| 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. | ||
|
|
||
| ## Signature | ||
|
|
||
| 1. The `k-signature-action k-signature-minimize` element no longer includes the `k-rotate-180` class. | ||
| 2. When maximized, the Signature now renders the `k-signature-maximized` class. | ||
| 3. The fill mode class is now applied based on the `FillMode` parameter (appearance settings). | ||
|
|
||
| ## TabStrip | ||
|
|
||
| 1. The active (currently selected) tabs now render only the `k-active` class. The` k-tab-on-top` class is no longer applied. | ||
ntacheva marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. The inactive tabs no longer include the `k-state-default` class. | ||
| 3. The scroll buttons (prev & next) now render the `k-tabstrip-prev` and `k-tabstrip-next` classes, respectively. | ||
| 4. The `k-pos-relative` class is no longer applied to the `k-tabstrip` element. The component now receives an inline `position: relative` style instead. | ||
|
|
||
| ## TreeList | ||
|
|
||
| 1. The `k-cursor-pointer` class is removed from the `k-treelist-toggle` element (toggle row icon). | ||
| 2. The `k-table` element rendered in the `k-grid-header > k-grid-header-wrap` element now also has the `k-grid-header-table` class. | ||
| 3. The `k-grid-content > k-table element` now also includes a size class (appearance settings). | ||
| 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. | ||
|
|
||
| ## See Also | ||
|
|
||
| * [Use best practices when overriding theme styles]({%slug themes-override%}#best-practices) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.