paper_types

The paper_types function gives the script developer the ability to specify paper settings for the current section of the document.

@(paper_types (first; other))

The result of the function paper_types is of type TEXT.

This function has no effect on the AiaDocXML and HTML output.

This function has two parameters.

  1. first, type TEXT. This is the paper type for the first page of the section. The content depends on the specific word processor you use to develop a Master Template.
  2. other, type TEXT. This is the paper type for the subsequent pages of the section. The content depends on the specific word processor you use to develop a Master Template.

The result of the function paper_types is of type TEXT. The output of this function takes effect at the location where it is put into the result document.

If the result of multiple calls to the function paper_types is put in the same section, only the last result has impact on the section.

An example is provided here.

# BEGIN 
#
@(paper_types("2"; "3"))
# 
END #

The function paper_types sets the paper tray selections for the current section. Both the first and other parameter must be decimal numbers. The exact values for these parameters depend on the target printer driver used to print the result document.