Skip to content

Not able to load PDF or Word doc #162

@nikhilguptagl

Description

@nikhilguptagl

I am using this code to load a pdf,

import DocViewer, { DocViewerRenderers } from 'react-doc-viewer';

function DocViewerFile() {
  const docs = [
    {
      uri: 'http://10.6.0.220/testing2/560RCR01_DS_en.pdf',
    },
  ];

  return <DocViewer pluginRenderers={DocViewerRenderers} documents={docs} />;
}

export default DocViewerFile;

but I am not able to load that pdf on browser. This is the screenshot -
image

http://10.6.0.220/testing2/560RCR01_DS_en.pdf is the valid link- I see a PDF on the browser when I put this URL in the browser directly.

Any idea, what is missing here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions