Skip to content

Impossible to retrieve the attachments from a PDF in version 1.4 #953

@AmineZouitine

Description

@AmineZouitine

pdfcpu does not allow extracting attachments from a PDF in version 1.4.

CLI Error:

> pdfcpu attachments list doc.pdf
unknown_error: facturx: validating xref table: pdfcpu: validateNameEntry: dict=rootDict entry=PageMode invalid dict entry: UseAttachment

Lib issue:

unknown_error: facturx: validating xref table: pdfcpu: validateNameEntry: dict=rootDict entry=PageMode invalid dict entry: UseAttachments

I upgraded the PDF version to 1.7 with Ghostscript, and then it worked. So the issue was indeed due to the PDF version.

Library version: v0.8.1
CLI version: v0.8.1 dev

OS: MacOS

It would be great not to have this constraint anymore 🙏

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions