I have a PDF that needs intra-PDF links, but where the item to be linked to may or may not exist in the PDF. For example, we have issues and equipment. The user can include one or both of those in the PDF they generate. If they choose both, then any references to equipment in the issues section should be a link to that page, and vice versa. However, if they only choose to print issues then references to equipment should not be a link.
It would be problematic for us to determine whether the item should be a link or not while generating the content, so we would rather handle this via CSS rules or some sort of post-processing. Is this possible with cross-references? Or is there another solution that you would recommend? We have discussed post-processing via JavaScript as well as a modernizr-style technique of setting attributes on the body specifying included items and then using CSS rules to target the display property of the links based on the presence (or not) of those attributes.
It would be problematic for us to determine whether the item should be a link or not while generating the content, so we would rather handle this via CSS rules or some sort of post-processing. Is this possible with cross-references? Or is there another solution that you would recommend? We have discussed post-processing via JavaScript as well as a modernizr-style technique of setting attributes on the body specifying included items and then using CSS rules to target the display property of the links based on the presence (or not) of those attributes.