PDF Viewer for Adobe Document Cloud component written in HTL.
- Allows embedding PDF files using the View SDK
- Configurable features for controlling appearance and functionality.
The PDF Viewer component uses the com.adobe.cq.wcm.core.components.models.PdfViewer
Sling model as its Use-object.
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
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
-true
to enable full screen borderless./showAnnotationTools
-true
to enable annotation tools./showFullScreen
-true
to show full screen button./showLeftHandPanel
-true
to display left side panel./showDownloadPdf
-true
to show download button./showPrintPdf
-true
to show print button./showPageControls
-true
to show page controls./dockPageControls
-true
to dock controls to bottom
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.
BLOCK cmp-pdfviewer
ELEMENT cmp-pdfviewer__content
- 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.