A system for enhancement of an input document data stream with finishing commands, the input document data stream comprising at least one input format file comprising format definitions and an input document data file structured in at least one of ranges and sub-ranges and containing variable data, comprising:
- in a control file level structures are defined that correspond to at least one of the ranges and the sub-ranges of the input document data file;
- in the control file the finishing commands are associated with the level structures;
- and
- a computer program module is provided via which, using the control file, the input format file and the input document data file, the following are automatically generated:
- an output format file that contains the finishing commands in callable groups, and
- an output document data file containing the variable data and group calls associated by at least one of range-by-range and sub-range-by-sub-range.