Alcumus / react-doc-viewer

Apache License 2.0
208 stars 101 forks source link

Is there support for Base 64 files? #62

Closed kingeke closed 3 years ago

david-mcleod commented 3 years ago

@kingeke passing a data uri works...

<DocViewer
    documents={[{uri: 'data:application/pdf;base64,JVBERi0xLjQ ... UlRU9GCg=='}]}
    pluginRenderers={DocViewerRenderers}`
/>
knaveenstar commented 3 years ago

Its supports only Pdf, what application type should pass for docx and excel and PPT

mattmogford-alcumus commented 3 years ago

Its supports only Pdf, what application type should pass for docx and excel and PPT

Current Renderable File Types

knaveenstar commented 3 years ago

Hi Alcumus,

I tried to use the defined current renderable fie types but its shows like this. image

mattmogford-alcumus commented 3 years ago

@knaveenstar Please see... https://github.com/Alcumus/react-doc-viewer/issues/66