IBM Page Printer Formatting Aid PPF Users Guide
Total Page:16
File Type:pdf, Size:1020Kb
IBM Page Printer Formatting Aid: User’s Guide S544-5284-06 IBM Page Printer Formatting Aid: User’s Guide S544-5284-06 Note! Before using this information and the product it supports, read the information in “Notices” on page 457. Seventh Edition (May 2002) | This edition applies to Version 4 Release 5 (V4R5) of Page Printer Formatting Aid (PPFA) for iSeries, Version 1 | Release 1 of PPFA for System/390, Version 3 Release 2 of PPFA for Infoprint Manager for AIX, Version 1 Release 1 | of PPFA for Infoprint Manager for Windows NT and Windows 2000, and to all subsequent releases of this product | until otherwise indicated in new releases or technical newsletters, and replaces the following publication: IBM Page | Printer Formatting Aid: User’s Guide, S544-5284-05. See the Summary of Changes for the changes made to this publication. Technical changes or additions to the text and illustrations are indicated by a vertical line to the left of the change. Requests for IBM® publications should be made to your IBM representative or to the IBM branch office serving your locality. If you request publications from the address given below, your order will be delayed because publications are not stocked there. Many of the IBM Printing Systems Division publications are available from the web page listed below. Internet Visit our home page at: http://www.ibm.com/printers A Reader’s Comments form is provided at the back of this publication. If the form has been removed, you can send comments by fax to 1-800-524-1519 (USA only) or 1-303-924-6873; by E-mail to [email protected];orbymailto: IBM Printing Systems Division Department H7FE Building 004M Information Development PO Box 1900 Boulder CO 80301-9191 USA IBM may use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1985, 2002. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures ....................................xi Tables ....................................xv About This Publication .............................xvii Who Should Use This Publication? ..........................xvii How This Publication Is Organized ..........................xvii Reading Syntax Diagrams .............................xviii Style Rules: .................................xviii Symbols: ..................................xix Required Parameters:..............................xix Optional Parameters: ..............................xix Repeating Parameters: .............................xx Fragment Elements ...............................xx Related Information ...............................xxi || Summary Of Changes .............................xxiii Part 1. What is PPFA?.............................1 Chapter 1. Introducing Page Printer Formatting Aid ...................3 Summary of a Form Definition ............................4 Summary of a Page Definition ............................5 Formatting Output of Different Data File Types ......................5 Line-Data Files .................................5 Traditional Line Data...............................6 Record Format Line Data .............................6 Mixed-Data Files ................................7 MO:DCA-P Data Files ..............................7 Unformatted ASCII Files .............................7 PPFA Concepts .................................7 Physical Page .................................7 Logical Page .................................7 Subpage ...................................8 PPFA Basic Terms ................................8 Printline ...................................8 Layout ....................................8 Direction ...................................8 Rotation ...................................9 Presentation .................................10 N_UP Partitions ................................10 Modifications .................................10 Definitions of Command, Subcommand, and Parameter ..................11 Commands ..................................11 Subcommands ................................11 Parameters ..................................11 Basic Controls in Traditional Line Data.........................11 Carriage Control Characters (CC) .........................11 Table-Reference Characters (TRC) .........................11 Record Id ..................................11 Basic Controls in Record Format Line Data .......................12 Carriage Control Characters (CC) .........................12 Table-Reference Characters (TRC) .........................12 © Copyright IBM Corp. 1985, 2002 iii Record Id ..................................12 Structured Fields in Line Data ............................12 Invoke Data Map ...............................12 Invoke Medium Map ..............................13 Include Page Segment .............................13 Include Page Overlay ..............................13 Include Object.................................13 Presentation Text ...............................13 No Operation .................................13 Normal Duplex and Tumble Duplex ..........................13 Part 2. Examples of Using PPFA .......................15 Chapter 2. Using Form Definition Commands .....................19 Copy Groups and Subgroups ............................19 Commands Required to Create a Form Definition.....................20 Command Nesting Rules.............................20 Positioning a Logical Page on a Sheet.........................21 OFFSET Subcommand with Rotated Print Direction ....................22 Specifying Copies and Electronic Overlays .......................22 Overlay Names ................................23 Printing Constant Forms ..............................24 Duplex Printing .................................25 Duplex Printing in Portrait and Landscape Presentations ..................27 Specifying Page Presentation on Continuous-Forms Printers ................29 When to Use the PRESENT and DIRECTION Subcommands ...............30 When the PRESENT and DIRECTION Subcommands Are Not Required ...........30 The DOWN Direction for IBM Continuous Forms Printers .................30 3800 Coexistence and Migration ...........................32 Print Quality Control ...............................34 Chapter 3. Using Page Definition Commands for Traditional Line Data ...........35 Page Formats within Page Definitions .........................35 Page Definition Command Nesting ..........................35 Command Nesting Rules.............................36 Defining Logical Page Size .............................36 Positioning the First Line of Data ...........................37 Changing Logical Page Print Direction .........................39 Printing Line Data on a Print Server Printer .......................40 The OS/400 Environment ............................44 Processing Fields ................................45 POSITION Subcommand as Used in this Example ...................46 FIELD Command as Used in this Example ......................46 Color on the IBM Infoprint HiLite Color Post Processor...................47 Setup Verification ...............................48 Varying Fonts on a Page..............................48 Printing Lines in Two Directions on a Page .......................51 Printing Fields in Two Directions on the Same Page....................52 Rotating Fonts .................................53 Using Traditional Kanji Formatting ..........................54 Printing Multiple-Up Pages .............................55 Chapter 4. Using Page Definition Commands for Record Format Line Data and XML Data ...59 Record Formatting Function ............................59 Record Format Page Definition ...........................60 Page Formats within Page Definitions ........................60 iv PPFA User’s Guide Page Definition Command Nesting .........................61 Command Nesting Rules.............................61 Record ID Data Format ..............................61 LAYOUT Command ...............................62 Body Records.................................62 Page Headers and Trailers ............................63 Group Headers ................................63 FIELD Command ................................64 Controlling Page Formatting ...........................65 Page Numbering................................66 Graphical Objects ...............................66 Conditional Processing Considerations .......................66 Logical Page Eject Processing ..........................66 Defining Color Models..............................67 Defining Logical Page Size .............................68 Positioning the Data ...............................69 Changing Logical Page Print Direction ........................69 Using Margins in Record Formatting ........................70 Processing Fields ................................72 Position Subcommand..............................73 FIELD Command as Used in this Example ......................73 Printing Lines in Two Directions on a Page ......................74 Printing Fields in Two Directions on the Same Page...................74 Varying Fonts on a Page..............................75 Rotating Fonts .................................77 Using Traditional Kanji Formatting ..........................78 Record Formatting Examples ............................79 Example 1 Desired Output (after PAGEDEF Processing) .................79 Example 1 Application Output (before PAGEDEF