Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react doc viewer

import DocViewer from "react-doc-viewer";

function App() {
  const docs = [
    { uri: "https://url-to-my-pdf.pdf" },
    { uri: require("./example-files/pdf.pdf") }, // Local File
  ];

  return <DocViewer documents={docs} />;
}
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #react #doc #viewer
ADD COMMENT
Topic
Name
4+9 =