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

URI in annotation does not get decrypted #336

Open
StephanvanSchaik opened this issue Oct 2, 2024 · 0 comments
Open

URI in annotation does not get decrypted #336

StephanvanSchaik opened this issue Oct 2, 2024 · 0 comments

Comments

@StephanvanSchaik
Copy link

StephanvanSchaik commented Oct 2, 2024

I modified the print_annotations example as follows to handle PDF files that have been encrypted with an empty password:

    Ok(mut doc) => {
        if doc.is_encrypted() {
            doc.decrypt("");
        }
        
        let _ = handle_pdf_page(doc);
    }

However, despite the decryption working for other parts of the PDF. It does not seem to decrypt the URI in links. They still end up seemingly garbled, whereas they are supposed to be a valid UTF-8 (?) string (and I confirmed that the links work in mupdf), which is why I am assuming that they didn't get decrypted.

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