JSON API - addLink

addLink

PREMIUM TRIAL / ADVANCED

Inserts a link.

Note

You are reading the JSON API documentation. For the PHP API method please go to addLink.

JSON data

Styles from addText can be used.

Key Description
text Text content.
url The url where the text should be linked or internal bookmark name (#bookmark_name).
rStyle Sets a custom character style to the hyperlink (DefaultParagraphFontPHPDOCX is set as default).
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.