Skip to content

Expose PDFDocumentLoadingTask callbacks to props #16

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

Open
KingSora opened this issue Apr 20, 2025 · 0 comments
Open

Expose PDFDocumentLoadingTask callbacks to props #16

KingSora opened this issue Apr 20, 2025 · 0 comments

Comments

@KingSora
Copy link

Good day!

As the library currently doesn't support password protected pdf files, we wanted to implement this functionality on our own. Currently its just not possible to interface with the PDFDocumentLoadingTask class which is used in the background. It would be really great if the RPProvider would provide two additional properties onPassword and onProgress which would solve this issue.

I know that password protected pdfs are in consideration on the roadmap, so this should be implemented in a way where future functionality (e.g. handling password protected pdfs directly by react-pdf) is taken into consideration.

Unrelated: the RPDefaultLayout should also expose a callback onMobileWidth: (mobileWidth: boolean) => void to make it easier to know whether the layout is currently in the mobile mode or not.

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

1 participant