Skip to content

Commit

Permalink
Deprecate note add direct link
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 31, 2022
1 parent e6b99fb commit 64f17af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyPDF2/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,9 @@ def addLink( # pragma: no cover
Use :meth:`add_link` instead.
"""
deprecate_with_replacement("addLink", "add_link", "4.0.0")
deprecate_with_replacement(
"addLink", "add_annotation(AnnotationBuilder.link(...))", "4.0.0"
)
return self.add_link(pagenum, pagedest, rect, border, fit, *args)

_valid_layouts = (
Expand Down

0 comments on commit 64f17af

Please sign in to comment.