Closed gogsfundas closed 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).
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:
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
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.
Looking for some solution to disable the icon or redirecting url for this.
Regards Govind