Currently, in Styler using the APP engine, PDF destinations are named by calculating a hash of the node path of the target node and then converting it to a string. To accomodate publishers who need to be able to create links to these destinations from other documents, it would be preferable to name these destinations with an attribute value specified by the author.
The current code for defining the destinations is in _app.3ns and is as follows:
$var hash = application.calculateHash( currentNode.getNodePath( 1 ));<>
$var linkName = "links:link" + hash.toString( 16 );<>
A discussion on PTC Community (http://communities.ptc.com/message/262733) resulted in the following code, which successfully creates a PDF named destination based on the ID attribute, but breaks all internal and external links (including links in TOCs) in the process:
$var linkName = "links:link" + formatting.getAttribute("id", false);<>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.