Open nikhilguptagl opened 2 months ago
I am trying to load PDF and Word-Document into my project
import DocViewer, { DocViewerRenderers } from '@cyntler/react-doc-viewer'; import '@cyntler/react-doc-viewer/dist/index.css'; function DocViewerFile() { const docs = [ { uri: 'http://10.6.0.219/testing/1ZBF000043R1001.docx', }, ]; return <DocViewer pluginRenderers={DocViewerRenderers} documents={docs} />; } export default DocViewerFile;
Above code loads PDF successfully - with the PDF hosted on the same link but it is not able to load Word Document. Any idea what is missing here.
NOTE - http://10.6.0.219 is a minio blob repository.
Hello, @nikhilguptagl
If the url you are providing is publicly accessible, then it should work. Otherwise it won't work at all.
Are you able to render docx file @nikhilguptagl
I am trying to load PDF and Word-Document into my project
Above code loads PDF successfully - with the PDF hosted on the same link but it is not able to load Word Document. Any idea what is missing here.
NOTE - http://10.6.0.219 is a minio blob repository.