Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Creating PDF Named Destinations using attribute value - Styler/APP

$
0
0

I need to be able to created destinations in my PDF output that are named based on the value of the ID attribute. In Styler with the APP engine, named destinations are created by creating a hash of the current node's path and then converting it to a string:

 

$var hash = application.calculateHash( currentNode.getNodePath( 1 ));<>
$var linkName = "links:link" + hash.toString( 16 );<>

 

I need to be able to control the name of the destination using an attribute (the ID attribute) so that I can link to it from a different PDF document.

 

Named destinations are different from bookmarks in that they allow you to link to them from an external location (website, PDF file, etc.), and they will open to the specific page of the destination. The link works like this: [filePath]/[pdfFileName]#[namedDestination].

 

The code specified above is found in the APP library [installPath]\app\libs\APPStyler\app.3ns in multiple locations.

 

Has anyone worked within Styler OR using the library above to create a customization that support PDF destinations that are named according to an attribute value? Or does anyone have any suggestions for how to do this?

 

Any help or suggestions would be greatly appreciated!


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>