About Arbortext Styler > Document Preview and Publishing > PTC ALD PDF Configuration File (.appcf) > FormatHooks element (optional)
FormatHooks element (optional)
Parent Elements
Child Elements
The FormatHooks element defines custom JavaScript functions to run before, during, and after formatting. Its child elements provide the file definition.
Custom functions provide extra control over the formatting process. For example, they can set properties not supported by the configuration file or other job-specific parameters. A JavaScript object will be passed into each function to allow properties that were set in FormatStart to be seen in, for example, FormatPass or FormatEnd. JavaScript can be either embedded in a CDATA block inside the element, or provided in an external file.
These options can have a significant impact on performance and drastically alter the way the document is published. They should only be used when absolutely required. Custom settings for these options will most likely not be supported.