diff --git a/docs/core/viewer.component.md b/docs/core/viewer.component.md index 0ecbe1abb0..3c75ce949e 100644 --- a/docs/core/viewer.component.md +++ b/docs/core/viewer.component.md @@ -26,6 +26,7 @@ See it live: [Viewer Quickstart](https://embed.plnkr.co/iTuG1lFIXfsP95l6bDW6/) - [Configuring PDF.js library](#configuring-pdfjs-library) - [Extending the Viewer](#extending-the-viewer) - [Custom layout](#custom-layout) + - [Printing](#printing) - [See also](#see-also) ## Basic usage @@ -470,6 +471,21 @@ You can enable a custom "More actions" menu by providing at least one action ins ![More actions](../docassets/images/viewer-more-actions.png) +### Printing + +You can configure the Viewer to let the user print the displayed content. The +component will show a "Print" button if the `allowPrint` property is set to +true. + +```html + + ... + +``` + +You can also use the `print` event to get notification when the user prints some +content. + ## See also - [Document List component](../content-services/document-list.component.md)