Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

PDF Viewer (v1) | AEM Community Blog Seeding

Avatar

Administrator

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.



Kautuk Sahni
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies