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

Callback after PDF load #229

Open
edavalosanaya opened this issue Feb 15, 2024 · 2 comments
Open

Callback after PDF load #229

edavalosanaya opened this issue Feb 15, 2024 · 2 comments

Comments

@edavalosanaya
Copy link

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?

@Azzmeth
Copy link

Azzmeth commented Feb 29, 2024

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

@sulphite
Copy link

sulphite commented Oct 3, 2024

Bumping this to say I would also really like a way to provide an onLoad callback or something

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