How to render PDF, PPT or Word document (asset) in aem page | Community
Skip to main content
rajeshk94042740
Level 2
July 15, 2017
Solved

How to render PDF, PPT or Word document (asset) in aem page

  • July 15, 2017
  • 1 reply
  • 2075 views

Hi,

   I need to display assets especially PDF, PPT or word documents from content/dam  within page. Let's say page would be divided into 2 columns. 1st column I need to render asset and other column I need to display some additional information.

   Is there anyway I can render assets from DAM into page?

Thanks in advance !!!

Rajesh Karka

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by zeeshanKhan0786

Hi

I am not sure about the Embed part of ppt and word document but For PPt or Word Document you can go throught this thread may help

Powerpoint renderer for a page - AEM 6.2

For Pdf you can check this code Make sure to change the height and width accordingly.It will display pdf based on the browser setting.

<embed src="/content/dam/xyz.pdf" width="800px" height="2100px" />

1 reply

zeeshanKhan0786
zeeshanKhan0786Accepted solution
Level 5
July 15, 2017

Hi

I am not sure about the Embed part of ppt and word document but For PPt or Word Document you can go throught this thread may help

Powerpoint renderer for a page - AEM 6.2

For Pdf you can check this code Make sure to change the height and width accordingly.It will display pdf based on the browser setting.

<embed src="/content/dam/xyz.pdf" width="800px" height="2100px" />