Skip to content

Decrypt error when trying to split file #613

@jayachithra

Description

@jayachithra

I am trying to split a pdf into its pages. For few documents I get the error: PdfReadError: File has not been decrypted
image

I tried the following fixes, but nothing works.
Fix 1: Manually decrypt the file using: inputpdf.decrypt('')
This throws an NotImplementedError:
image

Fix 2: Suggested here: https://stackoverflow.com/a/48364988/15368105
This also doesn't work and throws the same error.

Is there a solution for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    is-bugFrom a users perspective, this is a bug - a violation of the expected behavior with a compliant PDFworkflow-encryptionFrom a users perspective, encryption is the affected feature/workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions