adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
726 stars 735 forks source link

Trying to disable Adobe PDF icon while pdf is displayed in AEM. #2635

Closed gogsfundas closed 6 months ago

gogsfundas commented 7 months ago

I have tried to disable pdf icon while displaying PDF in AEM site. Whole content is getting loaded into iframe , once content is loaded its not possible to update / apply anything on icon. it simply inbuild inside iframe,

connected to adobe support , following are comments

After reviewing the latest screenshot you provided, it's clear that you are using the WCM core component PDF viewer and not a custom-created component.

I've had a discussion about this with one of our senior engineers and our internal team. We've confirmed that there is no configurable way to disable the link.

Given this, one option you can try would be to contact the WCM Core Components ACS team directly for further assistance. This is something that falls beyond the scope of our team's support capabilities. You can get in touch with them through their GitHub issues page, available at: https://github.com/adobe/aem-core-wcm-components/issues.

pdficon , ad_2 ad_1

Looking for some solution to disable the icon or redirecting url for this.

Regards Govind

vladbailescu commented 6 months ago

@gogsfundas , not really sure what you're trying to achieve. Looking at the description it seems you would like to remove the PDF logo/icon from the PDF Viewer embedded in the page (noted 1 in screenshot). However, the screenshots show the cq:icon property that is used for the component in the editor (noted 2 in screenshot).

image

The PDF Viewer component is a convenient wrapper for the Adobe PDF Embed API https://developer.adobe.com/document-services/apis/pdf-embed/ and will not alter the contents (as you noted, it's embedded as an iframe). There are some configurations that might be helpful though, most notably switching to Sized Container embed type:

image

This will display a header-less document as shown in the examples at https://www.aemcomponents.dev/content/core-components-examples/library/core-content/pdf-viewer.html

image