Hello guys ,
I am trying to use Pdfviewer component in my AEMaaCS sandbox instance but even with all configuration given here and here component is not showing on page without any error in console and error-log , below are the steps I have done -
1) ClientId generated for publisher domain site from here and added in com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig under /conf/<mysite>/sling:configs .
2) /conf/<mysite> has been added as a value for key sling:conf and sling:configRef (tried with both ) in /content/brandpage/jcr:content .
3) Overlayed Pdfviewer component with sling:resourceSuperType with value as core/wcm/components/pdfviewer/v1/pdfviewer and allowed it in page template .
3) Overlayed Component is added in page under /content/page1/page11/page111 .
4) Pages are published .
Can anyone please help me ?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @newbie34 ,
Could you try the name as osgi factory name like org.apache.sling.caconfig.impl.override.OsgiConfigurationOverrideProvider~pdfviewer.cfg.json
Sample: we have kept like below and working for our project
{
"description": "CA config for PDF Embed viewer (for local environment)",
"overrides":["[/content/projectname]com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig={\"clientId\":\"28b07c6be4d544f188dc2f36e33b196b\",\"reportSuiteId\":\"\"}"],
"enabled": true
}
Thanks
Correction in step 3 -- component is added in /content/brandpage/page1/page11/page111
Hi, please follow these steps
Also, can you share the screenshot of the html markup it is rendering?
Hi @newbie34 ,
Could you try the name as osgi factory name like org.apache.sling.caconfig.impl.override.OsgiConfigurationOverrideProvider~pdfviewer.cfg.json
Sample: we have kept like below and working for our project
{
"description": "CA config for PDF Embed viewer (for local environment)",
"overrides":["[/content/projectname]com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig={\"clientId\":\"28b07c6be4d544f188dc2f36e33b196b\",\"reportSuiteId\":\"\"}"],
"enabled": true
}
Thanks
Hi @MukeshYadav_ , @chaudharynick , @AmitVishwakarma , thanks for reply . Issue was pdfviewer' clientlib was not loading even after embedding in our clientlib-site . We had to merged those JS and LESS file in our code base .
Views
Replies
Total Likes
Views
Likes
Replies