cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Specify PDF destination names with an attribute value

Specify PDF destination names with an attribute value

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);<>

1 Comment
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.