Open JacobDaneh opened 2 years ago
Readium Swift doesn't support password-protected PDF yet. But if it's a pressing issue for you, we will welcome a contribution! I think it's a matter of passing down the password to the underlying APIs (CGPDF and PDFKit).
The onAskCredentials()
was not implemented and I'm not sure we will keep this API in the end, but a minimal approach would be:
credentials
parameter of Streamer.open()
.Publication.OpeningError.incorrectCredentials
.Thank you for your response. Unfortunately I don't have enough time to contribute now, but I will contribute to the readium project as soon as possible. Readium is one of the best projects I have ever seen.
Regards
Hi there, How could I open password protected pdf files? I could not found onAskCredentials() callback as said in this proposal:
https://readium.org/architecture/proposals/006-content-protection.html