Creating a custom step (transform) object that updates the job's page count

By default, InfoPrint Manager has no knowledge of the number of pages in a transformed job. However, if you have a transform that knows how many pages are in the job, you can create a transform object that can update InfoPrint Manager with this information. InfoPrint Manager can pass transform objects an update_file with the %u option. This update_file can be updated with how many pages are in the transformed job, and InfoPrint Manager then updates the job with this information. To modify the update_file, the user supplied transform needs to call the transform_update utility that is supplied with InfoPrint Manager. For the syntax of the transform_update utility, seeUsing the transform_update utility.

To define a data stream transform object from the InfoPrint Manager Administration GUI, use this procedure:

  1. Start the InfoPrint Manager Administration GUI.
  2. Click Server, and select Transform → Create.
  3. In the Create Transform dialog, fill in the fields as shown in Create Transform dialog: Define a transform to pass job attributes.
    For this example, the passvals program that is called by the PASSVALUES transform object gets passed both the resource-context document attribute and the job-owner job attribute, as well as an update file. You should change the passvals program to your transform program that knows how many pages are in the job, and then change the parameters in "Transform options" to what your program expects with the "%u" being the update_file that will be passed to the transform_update utility when your transform calls it. Other attributes, like resource-context and job-owner, can be included or omitted as required by the needs of your transform.

    Create Transform dialog: Define a transform to pass job attributes

    Create Transform dialog: Define a transform to pass job attributes
  4. Click OK.
    InfoPrint Manager saves the transform under the name you provided in the Name field so that you can see its values by selecting Transform → Properties from the Servers menu.