From 4a9431bf1097d64f3ea84b8e902a76bdc2d179f3 Mon Sep 17 00:00:00 2001 From: Andy Stark <30621568+therealandeeee@users.noreply.github.com> Date: Tue, 2 Oct 2018 18:53:11 +0100 Subject: [PATCH] [ADF-3564] Added brief docs for viewer printing feature (#3850) --- docs/core/viewer.component.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)