Open edavalosanaya opened 9 months ago
which ur i neeed to set const docs = [ { uri: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf' }, //{ uri: require("./test.pdf")} //documentURI.startsWith is not a function ]; console.log("docViewer",docs) return (
<main>
<DocViewer documents={docs} pluginRenderers={DocViewerRenderers} />
</main>
); im using this like there coming fetch error what i do
Bumping this to say I would also really like a way to provide an onLoad callback or something
Great work, this library is a lifesaver!
Is there a way to provide a callback function after a PDF (or general document) is successful loaded?