Skip to content

Compatibility between Java PDFBox and PDFSharp - Encryption. #277

@karol-lewandowski

Description

@karol-lewandowski

Hi,
I have an issue with working on PDF that was previously touched by PDFBox and encrypted. What I need to do is read metadata from the document, and when I try to use:
PdfReader.Open(documentStream, PdfDocumentOpenMode.Import)
it gives me an error:
System.InvalidOperationException: 'Indirect reference without value.'

I've also tried Modify mode with owner password, but got the same error.
The document is encrypted with AES256 on PDFBox side, tried also RC4 128, but no luck. It seems to be incompatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions