react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

Doc/Docx files not working

Open AjayReddi12 opened this issue 1 year ago • 7 comments
trafficstars

While try to view Doc/Docx file it's not working image

AjayReddi12 avatar Dec 30 '23 11:12 AjayReddi12

Hello @AjayReddi12, I also had the same issue by inspecting it I got to know that react-doc-viewer internally uses msdoc-iframe renderer for doc/docx which requires files to be available publically.

vijay22uk avatar Dec 30 '23 19:12 vijay22uk

Hi @vijay22uk Do you have any Solution to display DOC/DOCX file. Is there any other packages by which we can display any type of File. Thanks.

AjayReddi12 avatar Jan 02 '24 06:01 AjayReddi12

I am facing this same issue.

I also had the same issue by inspecting it I got to know that react-doc-viewer internally uses msdoc-iframe renderer for doc/docx which requires files to be available publically.

This shouldn't be the case.

maestro-00 avatar Feb 06 '24 11:02 maestro-00

This package is making false claims ...

rabalasubramani3 avatar Feb 13 '24 23:02 rabalasubramani3

Should have commented on this in documentation!!!

semanticist21 avatar Feb 23 '24 12:02 semanticist21

I think they mentioned it can only display docx if it is a public URL because it uses some kind of microsoft viewer. Which makes this basically useless for the most of us.

the-rich-piana avatar Feb 28 '24 19:02 the-rich-piana

Hi @vijay22uk Do you have any Solution to display DOC/DOCX file. Is there any other packages by which we can display any type of File. Thanks.

We converted docx to pdf files on server using mammoth. For react-doc-viewer to display doc/x files they need to be available publicly so that iframe can open them.

vijay22uk avatar Mar 26 '24 12:03 vijay22uk