Adding PDF Viewer - not sure how to set 'configure a context aware configuration in order to use these services' | Community
Skip to main content
bpeddapudi
New Participant
February 10, 2023
Solved

Adding PDF Viewer - not sure how to set 'configure a context aware configuration in order to use these services'

  • February 10, 2023
  • 1 reply
  • 1698 views

Hi,

 

I want to use this PDF viewer core component but unable to author it as I need to add Adobe API Credentials to some context aware configuration.

I have the credentials but not sure how to add it to the configuration.
Any guidance with some example or screenshots will be a great help.

 

Component link:

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/pdf-viewer.html?lang=

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ritesh_Mittal

Hi @bpeddapudi ,

 

You need to configure the context aware configuration like below-

 

context aware config com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig

Client key you will get from Document service-

https://documentservices.adobe.com/dc-integration-creation-app-cdn/main.html

 

https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wcm/components/pdfviewer/v1/pdfviewer#context-aware-config

 

 

For Context Aware configuration, you can refer below video-

https://www.youtube.com/watch?v=tj6enQrdaE0

 

Thanks,

Ritesh Mittal

1 reply

Ritesh_Mittal
Ritesh_MittalAccepted solution
New Participant
February 11, 2023

Hi @bpeddapudi ,

 

You need to configure the context aware configuration like below-

 

context aware config com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig

Client key you will get from Document service-

https://documentservices.adobe.com/dc-integration-creation-app-cdn/main.html

 

https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wcm/components/pdfviewer/v1/pdfviewer#context-aware-config

 

 

For Context Aware configuration, you can refer below video-

https://www.youtube.com/watch?v=tj6enQrdaE0

 

Thanks,

Ritesh Mittal

bpeddapudi
New Participant
February 15, 2023

Hi Ritesh,

 

Youtube video helped me to get this component up. Thank yo so much.

 

Bhargav.