Using Page Definition Commands for Record Format Line Data and XML Data
In this section:
- Record Formatting FunctionThe record formatting function allows an application to specify a format identifier (Record ID) with each set of output data fields (Data Record). The format identifier references a specific layout format in a page definition (PAGEDEF). At print time, each layout format (referenced by a Record ID in a Data Record) is retrieved from the PAGEDEF and used to position and format the associated Data Records/fields on the output page.
- Record Format Page Definition
- Record ID Data Format
- LAYOUT Command
- FIELD CommandThe FIELD command is used to identify a field in a Data Record to be formatted and placed on the page. FIELD must follow the LAYOUT command, and parameters that are not specified on FIELD are inherited from the previous LAYOUT. This section describes the new keywords on FIELD that are used with record formatting.
- Defining Logical Page Size
- Positioning the DataThe previous section showed you how to define the size of a logical page. The next examples show you how to position data inside the logical page.
- Processing FieldsThis section describes the mapping of individual fields to the printed sheets. The technique allows you to print unformatted data according to precise specifications, and these specifications can change without affecting the data file.
- Varying Fonts on a Page
- Rotating FontsFonts rotate relative to the inline direction of lines (or fields).
- Using Traditional Kanji FormattingTraditional kanji print presentation, called tate, is possible with your print server printers, using a combination of font rotation and logical page direction. A logical page in the DOWN direction and a 270° font rotation provide the right combination to present kanji in tate format on a print server printer.
- Record Formatting ExamplesIn order to allow different formats for different groups (or tables) of data, each of which have an unpredictable number of entries, a Record ID is assigned to each output record to identify the type of record and control layout formatting. An application can group data fields that are to be formatted together as an entity into Data Records with a specific Record ID. For example, in a bank statement, the data fields for a check transaction might be grouped together with a Record ID identifying that record as a check transaction. The PAGEDEF would then define a special layout format for a check transaction with a matching Record ID.
- XML Page Definition Formatting Function
Parent topic: Examples of Using PPFA