Home/ Reference/ Object Data

shape.URL

A hyperlink attached to the object, carried out on PDF export. Interactive brochures and quotes where the client clicks an image to reach a page.

Signature

shape.URL

Notes

A hyperlink attached to the object, carried out on PDF export. Interactive brochures and quotes where the client clicks an image to reach a page.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

print("Old link: ", shape.URL)
shape.URL = "https://ninedeep.xyz"                  # attach the link
print("New link: ", shape.URL)

shape.URL = ""                                      # clear the link

About this section: Object Data

Object Data — object data and document properties.

Other entries in this section