Using statistics in rules
You can compare a statistic to a static value, such as a number or word, or to a dynamic
value, such as a job property, document property, or statistic.
For example, you want to create a barcode on the third page of every document. You select the Stat.CurrentPageInDocument statistic, select = as the mathematical symbol, and type 3 in the Text field. The fifth condition in the Figure Rule with multiple conditions specifies a statistic.
The table below describes the available statistics.
Statistics options for rules
Keyword | Level | Definition |
---|---|---|
Stat.TotalDocumentsInJob | Print job | The total number of documents in the current print job. |
Stat.TotalSheetsInJob | Print job | The total number of sheets in the current print job. |
Stat.TotalPagesInDocument | Document | The total count of pages in the current document. |
Stat.TotalSheetsInDocument | Document | The total count of sheets in the current document. |
Stat.CurrentDocumentInJob | Document | The number of the current document in its print job, starting at 1. For example, the value of Stat.CurrentDocumentInJob for the third document is 3. |
Stat.CurrentPageInDocument | Page | The number of the current page in its document, starting at 1. For example, the value of Stat.CurrentPageInDocument for the second page in a document is 2. |
Stat.CurrentSheetInDocument | Page | The number of the current sheet in its document, starting at 1. |
Stat.CurrentPageInJob | Page | The number of the current page in its print file, starting at 1 and always from the Start page of the job. For example, the value of Stat.CurrentPageInJob for the tenth page in the print file is 10. |
Stat.CurrentSheetInJob | Page | The number of the current sheet in its print file, starting at 1 and always from the Start page of the job. |
Stat.CurrentMedia | Page | The media specified for the current page in a print job when the IdentifyPDFDocuments step was run. If no media is specified for the page, Stat.CurrentMedia provides the media specified for the job. If no media is specified for the page or the job, Stat.CurrentMedia does not provide a value. For example, the value of Stat.CurrentMedia for the first page of a document is Letterhead. |
Note: Although some statistics describe job-level values, RICOH ProcessDirector evaluates each page in a document when determining whether or not to apply markup
or extract the value of a document property.