Subcommands

GRAPHID Subcommand
GRAPHID {00 | nn}
Specifies a number that is used later to identify as the line or set of lines to be closed by the ENDGRAPHIC command. The default is 00.
POSITION Subcommand
POSITION LPOS [[(+) |(–)] horiz {IN | MM | CM | POINTS | PELS}]
NEXT [{LPOS | CPOS} [(+) | (–)] vert {IN | MM | CM | POINTS | PELS}]
Specifies the horizontal and vertical position for the start of the first line. This position is relative to the LAYOUT command's position statement or the current position.
LPOS
Specifies the layout position. If LPOS is used alone, the position is the same position as is specified on the LAYOUT command. If it is used with a + or - value, the position moves that amount from the LAYOUT position.
CPOS
Specifies the current position. If CPOS is used alone, the position is the same position as is specified on the previous FIELD or DRAWGRAPHIC command command. If it is used with a + or - value, the position moves that amount from the FIELD or DRAWGRAPHIC command position.
ACROSS or DOWN or TO Subcommand
{ACROSS length [IN | MM | CM | POINTS | PEL] 
DOWN length [IN | MM | CM | POINTS | PELS] 
TO [(–)] horiz [IN | MM | CM | POINTS | PELS] 
[(–)] vert [IN | MM | CM | POINTS | PELS]}
Specifies the line length.
ACROSS
Specifies the line length in the ACROSS (horizontal) direction. If ACROSS is specified, the line length must also be specified.
DOWN
Specify the line length in the DOWN (vertical) direction. If DOWN is specified and the n units value is not entered, the line continues until either a logical page eject is executed or an ENDGRAPHIC is found.
TO
Specifies horizontal and vertical ending positions for a point-to-point line. The TO position is specified relative to the POSITION parameter values in this command.
LINEWT Subcommand
LINEWT [MEDIUM | LIGHT | BOLD | n]
Specifes the weight of the line either as one of the following keywords or in lineweights (1 lineweight = .01 inch). Specify 0 if you want invisible borders (type and color are then ignored).
LIGHT
The same as LINEWT 1 (.01 inch)
MEDIUM
The same as LINEWT 2 (0.2 inch
BOLD
the same as LINEWT 3 (.03 inch)
LINETYPE Subcommand
LINETYPE [SOLID | DOTTED | SHORTDASH | DASHDOT | DBLDOT | LONGDASH | 
          DSHDBLDOT] [COLOR colorname]
Specifies the line type using one of these keywords:
  • SOLID
  • DOTTED
  • SHORTDASH
  • DASHDOT
  • DBLDOT (double dot)
  • LONGDASH
  • DSHDBLDOT (dash double dot)
COLORcolorname
Specifies the color to be used for the line. The color name must be either one of the pre-defined OCA keywords or the color name from the DEFINE COLOR command.
COPY Subcommand
COPY {ACROSS | DOWN} n [SPACED n [IN | MM | CM | POINTS | PELS]
Repeats the same line at regular intervals either across or down the page. The total number of lines is one more than the value specified on this parameter.
SPACED
Specifies the spacing between the lines.
RENDER Subcommand
RENDER {PERCEPTUAL | SATURATION | RELCM | ABSCM}
Specifies the rendering intent (RI) for a defined graphic (GOCA) object within a page definition. RI is used to modify the final appearance of color data and is defined by the International Color Consortium (ICC).
    Note:
  1. See AFP Color Management for more information about using the RENDER subcommand.
  2. See the current level of the ICC Specification for more information on RI.
PERCEPTUAL
Perceptual rendering intent. It can be abbreviated as PERCP. With this rendering intent, gamut mapping is vendor-specific, and colors are adjusted to give a pleasing appearance. This intent is typically used to render continuous-tone images.
SATURATION
Saturation rendering intent. It can be abbreviated as SATUR. With this rendering intent, gamut mapping is vendor-specific, and colors are adjusted to emphasize saturation. This intent results in vivid colors and is typically used for business graphics.
RELCM
Media-relative colorimetric rendering intent. In-gamut colors are rendered accurately, and out-of-gamut colors are mapped to the nearest value within the gamut. Colors are rendered with respect to the source white point and are adjusted for the media white point. Therefore colors printed on two different media with different white points won't match colorimetrically, but may match visually. This intent is typically used for vector graphics.
ABSCM
ICC-absolute colorimetric rendering intent. In-gamut colors are rendered accurately, and out-of-gamut colors are mapped to the nearest value within the gamut. Colors are rendered only with respect to the source white point and are not adjusted for the media white point. Therefore colors printed on two different media with different white points should match colorimetrically, but may not match visually. This intent is typically used for logos.
CMR Subcommand
[CMR cmrlname {AUDIT | INSTR | LINK}]…
Specifies a color management resource (CMR) and its process mode for a graphics object within the page definition.
Note: See AFP Color Management for more information about using the CMR subcommand.
cmr-lname
The CMR local name. This name must have been defined with a DEFINE CMRNAME command.
Note: This parameter must immediately follow the CMR keyword.
Processing mode parameter
Specify the processing mode for the CMR.
AUDIT
Process this CMR as an audit CMR.
INSTR
Process this CMR as an instruction CMR.
LINK
Process this CMR as a link CMR. This processing mode is only valid for device link (DL) CMRs.

Code Example: The following examples show how to define CMRs and rendering intent for graphics objects. Rendering intent and a CMR are defined for Record Format and XML page definitions. These are the only two page definition types for which DRAWGRAPHIC commands are legal.

  DEFINE mycmr  CMRNAME ... ;

  PAGEDEF cmr11L  REPLACE yes;
    FONT f1;
    LAYOUT 'L1';
      DRAWGRAPHIC BOX  BOXSIZE 1 in 2 in
        RENDER relcm CMR  myCMR audit;

  PAGEDEF cmr11X  REPLACE yes;
    FONT f1 TYPE ebcdic;
    XLAYOUT QTAG 'x1';
      DRAWGRAPHIC BOX  BOXSIZE 1 in 2 in
        RENDER relcm CMR  myCMR audit;