can AEM has any OOTB component which can render a word document? | Community
Skip to main content
Level 4
April 25, 2020
Solved

can AEM has any OOTB component which can render a word document?

  • April 25, 2020
  • 1 reply
  • 2881 views

we have a customer requirement to upload workd documents in AEM, they want to directly view the document in the page, do we have any OOTB component in AEM which can add the word document and users can see the contents of the document.

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 ArpitVarshney

@ramgopalm545617  There us no OOB component available in AEM to render word document.

Also, No browsers currently have the code necessary to render Word Documents, However you can create your custom component which can show the word document using google docs or any other plugin.

 

For example:

 you can use Google Documents' Viewer via an <iframe> to display a remotely hosted .doc/.docx.

<iframe src="https://docs.google.com/gview?url=http://remote.url.tld/path/to/document

 

Referece: https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript

 

Regards,

Arpit 

1 reply

ArpitVarshney
Community Advisor
ArpitVarshneyCommunity AdvisorAccepted solution
Community Advisor
April 25, 2020

@ramgopalm545617  There us no OOB component available in AEM to render word document.

Also, No browsers currently have the code necessary to render Word Documents, However you can create your custom component which can show the word document using google docs or any other plugin.

 

For example:

 you can use Google Documents' Viewer via an <iframe> to display a remotely hosted .doc/.docx.

<iframe src="https://docs.google.com/gview?url=http://remote.url.tld/path/to/document

 

Referece: https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript

 

Regards,

Arpit 

Level 4
April 25, 2020
thanks for the reply, I hope this will work in AEM 6.5.2 as well.