Forum Discussion
How to add clickable hyperlink to PDF for free?
Typst is useful if you’re creating or rebuilding the document, particularly a report with a linked contents section. It’s a free, open-source typesetting tool, not an editor for placing links onto an existing PDF.
A small example can include a clickable word, a clickable image and an internal jump:
#set page(paper: "a4")
Visit our #link("https://example.com")[website].
#link("https://example.com")[
#image("logo.png", width: 30mm)
]
Jump to #link(<details>)[Project details].
#pagebreak()
= Project details <details>
This is the destination section.
Save it as report.typ, put logo.png beside it, and compile with the free Typst command-line tool:
typst compile report.typ linked.pdf
The internal link targets the labelled section, so you don’t have to update a hard-coded page number whenever the layout changes.
This is a good fit when you control the document’s source. If you only want to add two links to a finished PDF, rebuilding it in Typst would be unnecessary work.