PDF Viewer (v1)
PDF Viewer for Adobe Document Cloud component written in HTL.
Features
- Allows embedding PDF files using the View SDK
- Configurable features for controlling appearance and functionality.
Use Object
The PDF Viewer component uses the com.adobe.cq.wcm.core.components.models.PdfViewer Sling model as its Use-object.
Context Aware Config
The PDF Viewer component uses the context aware config com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig with the following properties:
clientId- Required - the client key obtained by registering for the view sdk api - https://www.adobe.com/go/dcsdks_credentialsreportSuiteId- Adobe Analytics ID
Edit Dialog Properties
The following properties are written to JCR for this PDF Viewer component and are expected to be available as Resource properties:
./documentPath- defines the path of the pdf to display./type- defines the display type./defaultViewMode- defines the display view./borderless-trueto enable full screen borderless./showAnnotationTools-trueto enable annotation tools./showFullScreen-trueto show full screen button./showLeftHandPanel-trueto display left side panel./showDownloadPdf-trueto show download button./showPrintPdf-trueto show print button./showPageControls-trueto show page controls./dockPageControls-trueto dock controls to bottom
Client Libraries
The component provides a core.wcm.components.pdfviewer.v1 client library category that contains base
CSS styling and JavaScript component. It should be added to a relevant site client library using the embed property.
BEM Description
BLOCK cmp-pdfviewer
ELEMENT cmp-pdfviewer__content
Information
- Vendor: Adobe
- Version: v1
- Compatibility: AEM 6.4
- Status: production-ready
- ViewSDK Documentation: https://www.adobe.io/apis/documentcloud/dcsdk/docs.html
- Author: Ensemble Systems Inc. - Leslie Chan
If you were involved in the authoring of this component and are not credited above, please reach out to us on GitHub.