aMED Posted May 11, 2023 Posted May 11, 2023 Hello everyone, I have a document with 300+ pages. I used data merge to create the bulk of the pages and I've created a text style for some headings as to divide it in "sections" that I can later put in a table of content and use them as anchors for hyperlinks. I was wondering if it's possible to create a shape with a hyperlink that goes to let's say anchor 1 that I can reuse without updating the hyperlink target. By reuse, I mean if I add pages from a second file that has the same "anchor 1" and I delete the page with the previous "anchor 1" the shape and hyperlink I had created will now go to the new anchor 1. I have tried different ways and I can't seem to find a solution. I can make this work with hyperlinking to a page number but I don't like this because I can't add new pages on top or it will change the link to a different page. I would appreciate any ideas. Quote
MikeTO Posted May 11, 2023 Posted May 11, 2023 You can't do this because anchor names aren't unique and merging documents with identical anchor names will just result in two anchors with the same name. Once scripting is added it would be easy to do something but I'm unsure how to do this without it. Quote Download a free PDF manual for Affinity Publisher 2.5 Download a quick reference chart for Affinity's Special Characters Affinity 2.5 for macOS Sequoia 15.2, MacBook Pro 14" (M4 Pro)
thomaso Posted May 12, 2023 Posted May 12, 2023 10 hours ago, aMED said: a second file that has the same "anchor 1" and I delete the page with the previous "anchor 1" the shape and hyperlink I had created will now go to the new anchor 1. Regardless of a hyperlink pointing to an anchor: An anchor appears to be unique and linked to a specific, unique object – as every object in a document is unique, two objects even with identical properties in the layout view differ in the Layers panel at least. An anchors name does not matter to specify its position in the document, you can rename the anchor and can move its object to another position anywhere in the 300 pages and it will remain this anchor. From this perspective there is no "same" anchor in this or another document. Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.