Highlighted

PDF Viewer (v1) | AEM Community Blog Seeding

kautuk_sahni

Community Manager

27-09-2020

BlogImage.jpg

PDF Viewer (v1) by Adobe Git

Abstract

PDF Viewer for Adobe Document Cloud component written in HTL.

Features
1. Allows embedding PDF files using the View SDK
2. 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:
1. clientId - Required - the client key obtained by registering for the view sdk api - https://www.adobe.com/go/dcsdks_credentials
2. reportSuiteId - Adobe Analytics ID

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

Read Full Blog

PDF Viewer (v1)

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager