Expand my Community achievements bar.

PDF Viewer component not visible on the page

Avatar

Level 3

Hi All -I have extended the PDF viewer core component into our app : /apps/app-name/ and also created the "Content Aware configuration" under /conf/app-name/ and added the property "sling:configRef" that points to Context Aware Config path under /content/site/ but the pdf viewer component is still not visible. I have followed the exact steps provided by @Asutosh_Jena_ in the post https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/pdf-viewer-core-component-... but it's still not working. I verified and client id is correct and domain is also set as localhost as I am trying to configure on my local. The component div is getting created but it's empty.

 

Screenshot 2023-03-09 at 10.46.47 PM.pngScreenshot 2023-03-09 at 10.50.44 PM.png

Please advise

1 Reply

Avatar

Level 6

Hi,

Pls check if the "core.wcm.components.pdfviewer.v1" clientlibs are being loaded while rendering the page. PDFs will not render in case javascript is not present. Try to add clientlib using dependencies or embed property. 

Thanks,

Somen