PTC APP Code Types
An PTC APP application can be written using either of the following methods, or a combination:
1. FOM/JavaScript: PTC APP applications can be coded in the JavaScript scripting language, using as a base the application, content, and formatting object definitions provided by PTC APP’s Formatting Object Model (FOM).
2. PTC APP proprietary syntax: the traditional PTC APP programming method. PTC APP’s own macros, processing instructions and scripts define the actions in a template that will format a document.
Both of these types of code can be incorporated into an Arbortext Styler stylesheet, meaning that you can take advantage of both new or existing PTC APP template code to provide effects not available via the Arbortext Styler interface. The table below details how each code is applicable in the .style file, depending on the method that you choose to extend the stylesheet:
Extension Method
|
FOM / JavaScript
|
PTC APP Proprietary Syntax
|
Edit .style stylesheet source with PTC APP code
|
ü
|
|
Associate a template with a .style stylesheet1
|
ü
|
ü
|
1
An PTC APP template to be associated with a .style stylesheet is permitted to contain a combination of FOM/JavaScript code and PTC APP proprietary syntax