Add a table of contents page at the beginning of your document, automatically built from your headings and numbered to match the printed pages. Every entry is a link that works both in the preview and in the exported PDF. Turn it on in Layout, where you can also choose how many heading levels to show, give it your own title, and decide whether the rest of the document starts on a new page.