Alcumus/react-doc-viewer

Excel,Docs Files Not supported in Base64 Input method

Closed this issue · 5 comments

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

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,
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.

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

Docs and excel files not working