Skip to content
LpdfDocsv0.24-r1004.10

Lpdf is pre-release. The XML schema and SDK APIs can change between releases.

Link

Wraps any layout content in a clickable hyperlink. The link is active in PDF viewers that support annotations.

Attribute Type Default Description
href URL — Required. Link destination
gap spacing — Gap between child elements
<link href="https://lpdf.io">
<text color="#1a73e8" font-size="m">Visit lpdf.io</text>
</link>
<link href="https://lpdf.io">
<img name="logo" width="80pt"/>
</link>

The destination is fixed in the XML: data-value does not change href. Text inside the link can still be bound.

<link href="https://example.com">
<text data-value="product.name" color="#1a73e8">Product</text>
</link>