CGM Conformance

AH Formatter V7.1 conforms to ISO/IEC 8632:1999 CGM and W3C WebCGM 2.1 and supports to display CGM images with a newly developed engine. This makes it possible to output high quality CGM images as vectors in the CGM. See also Graphics to learn how to utilize CGM.

Customers must purchase “AH Formatter CGM Option” to render CGM originally. For more details, see also Antenna House website.

The below table shows the implemented CGM elements.

  • [yes] in the list means that the element is implemented.
  • [partial] means that the element is partially implemented.
  • [no] means not implemented.

The ISO8632 and WebCGM columns show the conformance status of the associated element.

  • [R] means that the element is essential.
  • [Y] means that the element is permitted.
  • [N] means that the element should not be implemented.
Class-IDElementConditionComments / AttributesISO8632WebCGM
0-0NOPyes

v1YY
0-1BEGIN METAFILEyes

When multiple BEGIN METAFILE elements are included, only the first one is effective.

v1RR
0-2END METAFILEyes

If the element exists after END METAFILE, it is ignored.

v1RR
0-3BEGIN PICTUREyes

With WebCGM, only one from BEGIN PICTURE to END PICTURE can be included in the metafile.

v1YR
0-4BEGIN PICTURE BODYyes

v1YR
0-5END PICTUREyes

v1YR
0-6BEGIN SEGMENTno

v2YN
0-7END SEGMENTno

v2YN
0-8BEGIN FIGUREyes

v2YY
0-9END FIGUREyes

v2YY
0-13BEGIN PROTECTION REGIONyes

v3YY
0-14END PROTECTION REGIONyes

v3YY
0-15BEGIN COMPOUND LINEyes

v3YY
0-16END COMPOUND LINEyes

v3YY
0-17BEGIN COMPOUND TEXT PATHno

v3YY
0-18END COMPOUND TEXT PATHno

v3YY
0-19BEGIN TILE ARRAYpartial

cell path direction, line progression direction are ignored.

v3YY
0-20END TILE ARRAYyes

v3YY
0-21BEGIN APPLICATION STRUCTUREpartial

In WebCGM, the following types are defined. When these types have structural violation or the types are outside the defined one, a warning message will be shown.

  • layer
  • grobject
  • para
  • subpara
  • grnode

The semantic interpretation of the type is not performed. The content is evaluated as is. inheritance flag is ignored and considered statelist.

In WebCGM, it is assumed to control APPLICATION STRUCTURE dynamically using ECMAScript from HTML. AH Formatter V7.1 doesn't handle such behavior. See also WebCGM Intelligent Content and WebCGM XML Companion File.

v4YY
0-22BEGIN APPLICATION STRUCTURE BODYyes

v4YY
0-23END APPLICATION STRUCTUREyes

v4YY
1-1METAFILE VERSIONyes

The version information isn't used.

v1RR
1-2METAFILE DESCRIPTIONyes

Behaves as WebCGM when “ProfileId:WebCGM” is specified. However, the setting contents of METAFILE DESCRIPTION swing widely, whether it is WebCGM may not be judged correctly. It's possible to enforce WebCGM by specifying WebCGM with content-type explicitly as follows:

<fo:external-graphic src="sample.cgm" content-type="image/cgm;ProfileId=WebCGM"/>

See also WebCGM Intelligent Content.

v1RR
1-3VDC TYPEyes

v1YY
1-4INTEGER PRECISIONyes

v1YY
1-5REAL PRECISIONyes

v1YY
1-6INDEX PRECISIONyes

v1YY
1-7COLOUR PRECISIONyes

v1YY
1-8COLOUR INDEX PRECISIONyes

v1YY
1-9MAXIMUM COLOUR INDEXyes

v1YY
1-10COLOUR VALUE EXTENTyes

v1YY
1-11METAFILE ELEMENT LISTpartial

Ignored.

v1YY
1-12METAFILE DEFAULTS REPLACEMENTyes

v1YY
1-13FONT LISTyes

v1YY
1-14CHARACTER SET LISTpartial

Ignored.

v1YY
1-15CHARACTER CODING ANNOUNCERpartial

Ignored.

v1YR
1-16NAME PRECISIONyes

v2YN
1-17MAXIMUM VDC EXTENTpartial

Ignored.

v2YY
1-18SEGMENT PRIORITY EXTENTno

v2YN
1-19COLOUR MODELpartial

Supported only for RGB.

v3YY
1-20COLOUR CALIBRATIONno

v3YN
1-21FONT PROPERTIESpartial

Only the attributes listed below are evaluated.

  1. font index
  2. font family
  3. posture
  4. weight
  5. proportionate width
v3YY
1-22GLYPH MAPPINGno

v3YN
1-23SYMBOL LIBRARY LISTno

v3NN
1-24PICTURE DIRECTORYno

v4YN
2-1SCALING MODEyes

v1YR
2-2COLOUR SELECTION MODEyes

v1YY
2-3LINE WIDTH SPECIFICATION MODEyes

v1YY
2-4MARKER SIZE SPECIFICATION MODEyes

v1YY
2-5EDGE WIDTH SPECIFICATION MODEyes

v1YY
2-6VDC EXTENTyes

v1YY
2-7BACKGROUND COLOURyes

v1YY
2-8DEVICE VIEWPORTno

v2NN
2-9DEVICE VIEWPORT SPECIFICATION MODEno

v2NN
2-10DEVICE VIEWPORT MAPPINGno

v2NN
2-11LINE REPRESENTATIONyes

v2YN
2-12MARKER REPRESENTATIONyes

v2YN
2-13TEXT REPRESENTATIONyes

v2YN
2-14FILL REPRESENTATIONyes

v2YN
2-15EDGE REPRESENTATIONyes

v2YN
2-16INTERIOR STYLE SPECIFICATION MODEyes

v3YY
2-17LINE AND EDGE TYPE DEFINITIONyes

v3YY
2-18HATCH STYLE DEFINITIONyes

v3YY
2-19GEOMETRIC PATTERN DEFINITIONno

v3YN
2-20APPLICATION STRUCTURE DIRECTORYno

v4YN
3-1VDC INTEGER PRECISIONyes

v1YY
3-2VDC REAL PRECISIONyes

v1YY
3-3AUXILIARY COLOURyes

v1YY
3-4TRANSPARENCYpartial

Reflected on hatch and non-solid line.

v1YY
3-5CLIP RECTANGLEyes

v1YY
3-6CLIP INDICATORyes

v1YY
3-7LINE CLIPPING MODEpartial

Supported only for shape.

v2YN
3-8MARKER CLIPPING MODEpartial

Supported only for shape.

v2YN
3-9EDGE CLIPPING MODEpartial

Supported only for shape.

v2YN
3-10NEW REGIONyes

v2YY
3-11SAVE PRIMITIVE CONTEXTno

v2YN
3-12RESTORE PRIMITIVE CONTEXTno

v2YN
3-17PROTECTION REGION INDICATORyes

When multiple REGION are made effective, adopts REGION that is newly made effective, without adopting the total of these regions as REGION.

v2YY
3-18GENERALIZED TEXT PATH MODEno

v3YY
3-19MITRE LIMITyes

v3YY
3-20TRANSPARENT CELL COLOURpartial

Reflected when the compression types are the following:

0.null background
1.null foreground
2.T6
3.T4 1-dimensional
4.T4 2-dimensional
5.bitmap
6.run length
v3YY
4-1POLYLINEyes

v1YY
4-2DISJOINT POLYLINEyes

v1YY
4-3POLYMARKERyes

v1YY
4-4TEXTyes

v1YN
4-5RESTRICTED TEXTyes

v1YY
4-6APPEND TEXTyes

v1YY
4-7POLYGONyes

v1YY
4-8POLYGON SETyes

v1YY
4-9CELL ARRAYyes

v1YY
4-10GENERALIZED DRAWING PRIMITIVEno

v1NN
4-11RECTANGLEyes

v1YY
4-12CIRCLEyes

v1YY
4-13CIRCULAR ARC 3 POINTyes

v1YY
4-14CIRCULAR ARC 3 POINT CLOSEyes

v1YY
4-15CIRCULAR ARC CENTREyes

v1YY
4-16CIRCULAR ARC CENTRE CLOSEyes

v1YY
4-17ELLIPSEyes

v1YY
4-18ELLIPTICAL ARCyes

v1YY
4-19ELLIPTICAL ARC CLOSEyes

v1YY
4-20CIRCULAR ARC CENTRE REVERSEDyes

v2YY
4-21CONNECTING EDGEyes

v2YY
4-22HYPERBOLIC ARCyes

Approximated curve is drawn.

v3YN
4-23PARABOLIC ARCyes

v3YN
4-24NON-UNIFORM B-SPLINEyes

Drawn by transforming to non-rational cubic Bézier curves.

v3YY
4-25NON-UNIFORM RATIONAL B-SPLINEyes

Drawn by transforming to non-rational cubic Bézier curves.

v3YY
4-26POLYBEZIERyes

v3YY
4-27POLYSYMBOLno

v3NN
4-28BITONAL TILEpartial

The following compression types are supported.

0.null background
1.null foreground
2.T6
3.T4 1-dimensional
4.T4 2-dimensional
5.bitmap
6.run length
7.baseline jpeg
9.png
v3YY
4-29TILEpartialv3YY
5-1LINE BUNDLE INDEXyes

v1YN
5-2LINE TYPEyes

LINE TYPE=1 to 14 are supported. LINE TYPE=6, 7, 8, 14 are adopted only with POLY LINE. When LINE TYPE=6, 8, and the length of the arrowhead is less than the length of the segment or the width of the arrowhead is less than the width of a line, an arrowhead isn't drawn. When LINE TYPE=7 and a circular diameter is less than the length of the segment or the width of a line, a circle isn't drawn.

v1YY
5-3LINE WIDTHyes

v1YY
5-4LINE COLOURyes

v1YY
5-5MARKER BUNDLE INDEXyes

v1YN
5-6MARKER TYPEyes

v1YY
5-7MARKER SIZEyes

v1YY
5-8MARKER COLOURyes

v1YY
5-9TEXT BUNDLE INDEXyes

v1YN
5-10TEXT FONT INDEXyes

v1YY
5-11TEXT PRECISIONpartial

Ignored.

v1YY
5-12CHARACTER EXPANSION FACTORyes

v1YY
5-13CHARACTER SPACINGyes

v1YY
5-14TEXT COLOURyes

v1YY
5-15CHARACTER HEIGHTyes

v1YY
5-16CHARACTER ORIENTATIONyes

v1YY
5-17TEXT PATHyes

v1YY
5-18TEXT ALIGNMENTyes

v1YY
5-19CHARACTER SET INDEXpartial

Ignored.

v1YY
5-20ALTERNATE CHARACTER SET INDEXpartial

Ignored.

v1YY
5-21FILL BUNDLE INDEXyes

v1YN
5-22INTERIOR STYLEpartial

geometric pattern is not supported.

v1YY
5-23FILL COLOURyes

v1YY
5-24HATCH INDEXyes

v1YY
5-25PATTERN INDEXyes

v1YY
5-26EDGE BUNDLE INDEXyes

v1YN
5-27EDGE TYPEyes

v1YY
5-28EDGE WIDTHyes

v1YY
5-29EDGE COLOURyes

v1YY
5-30EDGE VISIBILITYyes

v1YY
5-31FILL REFERENCE POINTyes

v1YY
5-32PATTERN TABLEyes

v1YY
5-33PATTERN SIZEyes

v1YY
5-34COLOUR TABLEyes

v1YY
5-35ASPECT SOURCE FLAGSyes

v1YN
5-36PICK IDENTIFIERno

v2YN
5-37LINE CAPpartial

triangle is not supported.

v3YY
5-38LINE JOINyes

v3YY
5-39LINE TYPE CONTINUATIONpartial

Ignored.

v3YY
5-40LINE TYPE INITIAL OFFSETyes

v3YY
5-41TEXT SCORE TYPEno

v3YY
5-42RESTRICTED TEXT TYPEyes

v3YY
5-43INTERPOLATED INTERIORpartial

triangular is not supported.

v3YY
5-44EDGE CAPpartial

triangle is not supported.

v3YY
5-45EDGE JOINyes

v3YY
5-46EDGE TYPE CONTINUATIONpartial

Ignored.

v3YY
5-47EDGE TYPE INITIAL OFFSETyes

v3YY
5-48SYMBOL LIBRARY INDEXno

v3NN
5-49SYMBOL COLOURno

v3NN
5-50SYMBOL SIZEno

v3NN
5-51SYMBOL ORIENTATIONno

v3NN
6-1ESCAPEpartial

The following functions are supported. The other functions of ESCAPE element are ignored.

  1. Transparent Cell Colour
  2. Alpha Transparency
v1YY
7-1MESSAGEyes

A message with the error level 1 is outputted.

v1YN
7-2APPLICATION DATAno

v1YN
8-1COPY SEGMENTno

v2YN
8-2INHERITANCE FILTERno

v2YN
8-3CLIP INHERITANCEno

v2YN
8-4SEGMENT TRANSFORMATIONno

v2YN
8-5SEGMENT HIGHLIGHTINGno

v2YN
8-6SEGMENT DISPLAY PRIORITYno

v2YN
8-7SEGMENT PICK PRIORITYno

v2YN
9-1APPLICATION STRUCTURE ATTRIBUTEpartial

In WebCGM, the following attributes are defined:

  • region
  • viewcontext
  • linkuri
  • layername
  • layerdesc
  • screentip
  • name
  • content
  • visibility
  • interactivity

These settings are evaluated, but these are not always used. When visibility is off, its APPLICATION STRUCTURE is not shown.

v4YY

WebCGM Intelligent Content

The feature of controlling the drawing using a URI fragment is partially supported. For example, specify as follows in FO.

<fo:external-graphic src="sample.cgm#name(targetName,newHighlight)"/>

See also WebCGM Intelligent Content to learn more about the fragment grammar. AH Formatter V7.1 does not support behavior. This is ignored.

When specifying content-type, the parameter can be given as follows:

<fo:external-graphic src="sample.cgm" content-type="image/cgm;Version=4;ProfileId=WebCGM"/>

The evaluated parameters available are Version and ProfileId. These are adopted in preference to the information in METAFILE VERSION, METAFILE DESCRIPTION in the metadata for each.

See also BEGIN APPLICATION STRUCTURE, APPLICATION STRUCTURE ATTRIBUTE to learn more about Application Structure (APS).

WebCGM XML Companion File

Supports WebCGM XML Companion File (XCF) partially. XCF can be specified in FO using the fragment as follows:

<fo:external-graphic src="sample.cgm#xcf(sample.xcf)"/>

It's also available to specify XCF directly as a child element of <fo:external-graphic>.

<fo:external-graphic src="sample.cgm">
 <webcgm xmlns="http://www.cgmopen.org/schema/webcgm/">
  <bindByName apstargetname="hidden-aps" visibility="off"/>
 </webcgm>
</fo:external-graphic>

AH Formatter V7.1 supports the following:

<wegcgm><layer><grobj><para><subpara><bindById><bindByName>Comments
idno
versionno
filenameno
background-coloryes
pictureVisibilityyes
intensityyesyesyesyesyesyesyes
raster-intensityyesyesyesyesyesyesyes
text-sizeyesyesyesyesyesyesyes  note 1
text-coloryesyesyesyesyesyesyes
text-fontyesyesyesyesyesyesyes
fill-coloryesyesyesyesyesyesyes
fill-offsetyesyesyesyesyesyesyes
stroke-coloryesyesyesyesyesyesyes
stroke-weightyesyesyesyesyesyesyes
stroke-typeyesyesyesyesyesyesyes
stroke-offsetyesyesyesyesyesyesyes
edge-visibilityyesyesyesyesyesyesyes
interior-styleyesyesyesyesyesyesyes
hatch-indexyesyesyesyesyesyesyes
pattern-indexyesyesyesyesyesyesyes
apsidyesyesyesyesyes  note 2
apstargetnameyes  note 3
screentipnonononono
regionnonononono
viewcontextyesyesyesyesyes
layerdescnono
visibilityyesyesyesyesyesyes
interactivitynononononono
<linkuri>nonononono
note 1:
Even with RESTRICTED TEXT, text-size is adopted and variabe zooming according to the specified region is not performed.
note 2:
apsid specifies the application structure identifier of BEGIN APPLICATION STRUCTURE.
note 3:
apstargetname specifies the value of the name attribute or the layername attribute of APPLICATION STRUCTURE ATTRIBUTE.

Application Configurable Items

In the CGM specification, the default value of the attribute is sometimes not defined. Application Configurable Items (ACI) in the WebCGM specification specifies such defaults and controls the behavior of CGM. The default value can also be specified in the Option Setting File as well. These are evaluated by the following order.

  1. ACI file specified by the environment variable, WebCGM_ACI_File.
  2. ACI file specified by aci in the Option Setting File.
  3. Contents other than aci in the Option Setting File.
  4. ACI file that has the .aci extension and the file name is the same as CGM file in the directory when CGM is a file.