PDF Viewer core component won’t display on page
Core Components installed v. 2.16.0
https://github.com/adobe/aem-core-wcm-components/releases/tag/core.wcm.components.reactor-2.16.0
AEM 6.4.8.3
Follow this article on how to use PDFs in AEM with the PDF Viewer Component integrated with the PDF Embed API.
What I’ve done so far:
- Installed Core components core.wcm.components.all-2.16.0.zip
- Create context aware configuration
- In AEM navigate to: /conf and create the following structure
/conf
/mysite sling:Folder
/sling:configs nt:unstructured
/com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig
Add Property = clientId, value = key obtained by registering for the view sdk api
- Overlaid /apps/core/wcm/components/pdfviewer
Under /apps/mysite/components/content/pdfviewer - On /apps/mysite/components/content/pdfviewer/v1/pdfviewer
Add property sling:resourceSuperType value /apps/core/wcm/components/pdfviewer/v1/pdfviewer
Modify property componentGroup value General - Under etc/designs/mysite/clientlib, embed core.wcm.components.pdfviewer.v1 (Found here)
- Lastly on mysite parent node /content/mysite/jcr:content
add property = sling:configRef value =/conf/mysite
(Found here)
ERROR1:
GET http://mysite/content/dam/mysite/myfile.pdf 404 (Not Found) VM20825 granite.js:266
ERROR2:
Uncaught (in promise) {code: "PREVIEW_RENDERING_FAILED"} page.html:1


Our author instance has http://mysite/author as contextPath, which is not reflected in Error 1
File reference should be http://mysite/author/content/dam/mysite/myfile.pdf
which does display the asset
Would Apache Sling Context-Aware Configuration - Override help me fix this?
Not sure how to add /author in the override syntax for [{contexPath}]
Thanks for all your help.

