Configure Unit Library dialog box

Use this dialog to configure a unit library. Unit libraries are JavaScript modules that CpMill calls at certain known times while processing a document (for example, begin document, page start, and page end). The modules can modify the contents of the document, extract information from the document, write the document, or parts of it, to a new location, or perform many other operations.

For more information, see Business rules and Managing resources.

You can access this dialog when configuring a business rule to modify document contents or when using the Resource Manager.

Name

Displays the name of the unit library configuration.

Description

Displays text describing the unit library configuration.

Comments

Displays any comments. Click in the drop-down list to enter/view comments.

Document Properties Needed

Specifies the document properties needed by the unit library. These properties will be written to a file called <filename>.properties when Output Manager calls the document modification software. This file is then opened and read in by the unit library.

Filters Needed

Specifies the filters needed for the unit library. The filters indicate document types that the unit library needs to be aware of in order to fulfill its intent. This includes all expected input, output, and interim document types. These filters will be written to a temporary location which will be sent to the document modification software.

Import Resource Data

Browse button — Allows for importing resource data. Imported files must contain text data.

Code page — Specifies the code page to be applied to the resource data.

Unit

Specifies the unit library. Review the default comments of a new unit library for descriptions of the parameters sent from Output Manager to the unit library and information about how to tell Output Manager about the documents modified or created by the unit library. Enter the unit library code within the <script> </script> tags in the appropriate event handler sections.

Review the default comments of a new unit library for descriptions of the parameters sent from Output Manager to the unit library and information about how to tell Output Manager about the documents modified or created by the unit library.

For more information on configuring unit libraries, contact Support.

To go to a specific line, right-click in the box and click Go To (or press Ctrl+G). In the box that displays, enter the line number and click OK. The line will be highlighted in the Resource Editor.

To find specific text, right-click in the box and click Find and Replace (or press Ctrl+F) to display the search dialog box.

Reload Variables from Unit button

Reloads the variables in the unit library and lists any output variables in the Output variables grid.

Output variables grid

Displays the output variables in the unit library. This grid is shown for reference only. It cannot be edited.