Alcumus / react-doc-viewer

Apache License 2.0
243 stars 103 forks source link

Excel,Docs Files Not supported in Base64 Input method #66

Closed knaveenstar closed 3 years ago

knaveenstar commented 3 years ago

Hi Team,

I try to load the files using the Base64 method. such as below

<DocViewer documents={[{uri: this.state.FileBase64}]} pluginRenderers={DocViewerRenderers} config={{header:{ disableHeader: true, disableFileName:true}}}/>

Its working fine for PDF and Images but not working for Docx,doc,xlsx files.

image

please help me to fix this issue

mattmogford-alcumus commented 3 years ago

The included renderer for Microsoft doc files etc. Only allow for URLs at this time. You could create a custom renderer if required


From: knaveenstar notifications@github.com Sent: 24 December 2020 15:51 To: Alcumus/react-doc-viewer react-doc-viewer@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Alcumus/react-doc-viewer] Excel,Docs Files Not supported in Base64 Input method (#66)

Hi Team,

I try to load the files using the Base64 method. such as below

<DocViewer documents={[{uri: this.state.FileBase64}]} pluginRenderers={DocViewerRenderers} config={{header:{ disableHeader: true, disableFileName:true}}}/>

Its working fine for PDF and Images but not working for Docx,doc,xlsx files.

[image]https://user-images.githubusercontent.com/30283702/103097616-d838b600-462d-11eb-92e1-2b13d3bb8e97.png

please help me to fix this issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Alcumus/react-doc-viewer/issues/66, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQR5QD2XZQNXB64IUEQVBS3SWNPPHANCNFSM4VIKOP4A.

Registered in England. Registered office: Axys House, Heol Crochendy, Parc Nantgarw, Cardiff, CF15 7TW. Alcumus Group Limited’s company registration number: 09793309

This e-mail (including any attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used or disseminated by any unauthorised person. If you are not the named recipient, please contact the sender and delete the e-mail from your system.

Although Alcumus believes this e-mail and any attachments to be free of any virus or other defect, which may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and Alcumus does not accept any responsibility for any loss or damage arising in any way from its use.

Finally, you should be aware that Alcumus reserves the right and intends to intercept and monitor incoming and outgoing e-mail correspondence, so you should not expect any e-mail communications to be private in nature.

knaveenstar commented 3 years ago

HI Alucumus,

can you please help me create the custom render which supports base64 as input and support for office file such as word,excel and PPT

mattmogford-alcumus commented 3 years ago

@knaveenstar Hi, There are ways to convert DocX to html and possibly pdf. But there's not really a common way to locally render all ms docs. Each ms document type is very complex on its own and would take A LOT of manual conversion to display in the browser.

shantha2210 commented 3 years ago

HI Alucumus,

can you please help me create the custom render which supports base64 as input and support for office file such as word,excel and PPT

@knaveenstar hi, do you find any solution for rendering docx, ppt files using base64, i had same scenario for my current work. any suggestions might be useful.

Thanks Shanthakumar

redmob commented 1 year ago

Docs and excel files not working