Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to render Word document #287

Open
nikhilguptagl opened this issue Sep 1, 2024 · 2 comments
Open

Not able to render Word document #287

nikhilguptagl opened this issue Sep 1, 2024 · 2 comments

Comments

@nikhilguptagl
Copy link

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.

@devAbreu
Copy link

Hello, @nikhilguptagl

If the url you are providing is publicly accessible, then it should work. Otherwise it won't work at all.

@Guggilam-sai-prabhat
Copy link

Are you able to render docx file @nikhilguptagl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants