cyntler / react-doc-viewer

File viewer for React.
https://cyntler.github.io/react-doc-viewer
Apache License 2.0
373 stars 125 forks source link

Bypass password for protected files #257

Closed kamelabiad closed 4 months ago

kamelabiad commented 4 months ago

Hi,

I was wondering if there is a way to bypass the password for protected files, avoiding the popup that asks the user to enter their password. I checked the code and didn't find anything related to the popup message: "Enter the password to open this PDF file."

cyntler commented 4 months ago

@kamelabiad There is no such possibility at the moment.

kamelabiad commented 4 months ago

@cyntler Thanks for getting back to me. Are you providing the full source code for this tool? I would like to look into it because I wasn't able to find the message "Enter the password to open this PDF file" when I checked the GitHub repo.

cyntler commented 4 months ago

@kamelabiad To render PDF files, the library uses: https://github.com/wojtekmaj/react-pdf. I see, there are prop/props regarding to password topic but it is not handled in our library.

kamelabiad commented 4 months ago

Thanks i managed to handle that