link
Function link
link(options: { href: string; margin?: EdgesInput } & FlexItemOptions, child: Node): NodeWraps a child node and registers a clickable hyperlink annotation over its rendered bounding box. The annotation is added at render time via pdf-lib's page annotation array, so any href works (https, mailto, tel, etc.).
Parameters
-
options: { href: string; margin?: EdgesInput } & FlexItemOptions -
child: Node
Returns Node