Skip to content

Link in the new (3.14.0) annotation module returns an empty dict. #2058

@ymareth

Description

@ymareth

The new Link class in annotation returns an empty* dict and hence creates no link.
I took a look at the link class and can't see any calls to self.update (since the base class is dict) as I do in the other annotation classes.

I reverted back to pypdf.generic.AnnotationBuilder.add_link with the same call parameters and links are inserted as expected.

*possibly 'title' would get through via the kwargs into the super constructor.

Environment

Windows, Python 3.11, running version 3.14.0

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 PDF

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions