Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

pdf viewer not working in the webserver url alone

Avatar

Level 2

I can see the pdf viewer in publish servers but in the varnish/webserver url the pdf viewer is not loaded. The sdk or the component div is not created, i am not seeing any errors in log or console.

 

5 Replies

Avatar

Community Advisor

Hi @Gowtham_ford,

If you are using core PDFViewer component for the same, can you confirm you are using the clientId of the webserver URL ?

Avatar

Level 2

Hi @Vijayalakshmi_S ,

 

Yes am using the client id for webserver url only. Actually the component itself is not showing like the div itself is not generating.

 

<div class="pdfviewer section"></div> - This the only thing i could see the in the webserver url.

Avatar

Community Advisor

Hi @Gowtham_ford,

Yes. I had a chance to try when there was a similar issue as yours in this thread - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/issues-with-pdf-viewer/qaq...

When I don't provide valid client Id, it will be blank.

 

You would have done custom implementation to pick client Id for each run mode and to handle webserver URL. 

Cross check the same once and above shared community thread or share your high level implementation detail to handle clientId for debugging further. 

Avatar

Level 2

Hi @Vijayalakshmi_S ,

 

Got the issue, it seems like the config folder is not accessible by anonymous user. After giving permission for anonymous user to conf folder it is working.

 

Need to know is it okay with the permission setup?

Avatar

Community Advisor
read permission on /conf folder in AEM instance level is fine. At dispatcher, deny access to /conf path