Page 1 of 1

AFP PAGEDEF and PAGEFORMAT.

Posted: Fri Apr 01, 2016 9:21 am
by Router
Hi,
I am looking forward to some help with AFP PAGEDEF and PAGEFORMAT. I need some sample definitions of these, to print free form letters. If someone can provide me some direction, it'd be a great help.

Re: AFP PAGEDEF and PAGEFORMAT.

Posted: Mon Apr 04, 2016 12:22 pm
by Anuj Dhawan
Hi,

This is long topic in itself. Suggest you start with this manual: http://publibz.boulder.ibm.com/cgi-bin/ ... 0115105309 and then proceed to: http://publibz.boulder.ibm.com/cgi-bin/ ... 0115105309 and then look at this: http://publibz.boulder.ibm.com/cgi-bin/ ... 9#HDRCH3E1. Quoting from there:

2.1.3 Positioning a Logical Page on a Sheet


The example in this section shows how the OFFSET subcommand is used to position the logical page on the physical sheet. A logical page is the area on a sheet of paper where all printing occurs. You establish the logical page origin, the point nearest the media origin, with the OFFSET subcommand. The OFFSET subcommand requires two coordinates and may have four. The first x and y coordinate defines the position on the front of the sheet, and the second x and y coordinate defines the position on the back of the sheet. A sample form definition that specifies the logical page position for a simplex sheet is:


Code: Select all

    FORMDEF ABCD
            OFFSET 1 IN 1 IN ;


Note: The 1 IN 1 IN is an abbreviation for 1 INCH 1 INCH. PPFA supports a number of different units of measurement formats. See "Units of Measurement" in topic 3.1.2 for all the different formats.


The example places the logical page origin one inch to the right of and one inch down from the media origin.

Figure 6 shows the meaning of the x and y coordinates. In writing an OFFSET subcommand, the first parameter specifies x; the second parameter specifies y. If the x and y are repeated for the offset of the back side of the physical page, the same applies. The x defines the horizontal offset; the y defines the vertical offset. In this example, the logical page direction is ACROSS. The arrows within the logical page indicate the inline direction for text on the page. The lines of text are added according to the baseline direction.

Image    
 Figure 6. Origin of Logical Page


Figure 7 shows the meaning of x and y in a logical page specification for a 3900 sheet. The 3900 sheet does not have an unprintable area, but FORMDEFs supplied with print server have a 1/6 inch offset.


Image
  Figure 7. Origin of a Logical Page on a 3900 Sheet

Re: AFP PAGEDEF and PAGEFORMAT.

Posted: Fri Apr 29, 2016 12:16 pm
by Router
Thanks Anuj! :)

Re: AFP PAGEDEF and PAGEFORMAT.

Posted: Mon May 02, 2016 12:03 pm
by Anuj Dhawan
You're welcome.