2.2.3.1 Page Content Records

Page Content Records include five record types, and they all have the following structure. Page content records specify formatting and graphical content, in the form of embedded EMF metafile records [MS-EMF].


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ulID

cjSize

EmfMetafile (variable)

...

...

ulID (4 bytes): A 32-bit unsigned integer from the following table, which identifies the type of record (section 2.1.1).

Value

Meaning

EMRI_METAFILE

0x00000001

This record defines the same function as the EMRI_METAFILE_DATA record.<4>

EMRI_FORM_METAFILE

0x00000009

This record defines the same function as the EMRI_METAFILE_DATA record.<5>

EMRI_BW_METAFILE

0x0000000A

This record defines the same function as the EMRI_METAFILE_DATA record, except that the content is monochrome.<6>

EMRI_BW_FORM_METAFILE

0x0000000B

This record defines the same function as the EMRI_METAFILE_DATA record, except that the content is monochrome.<7>

EMRI_METAFILE_DATA

0x0000000C

The record contains an EMF metafile [MS-EMF], which specifies the content for a page of output.

cjSize (4 bytes): A 32-bit unsigned integer that specifies the size, in bytes, of the metafile data attached to the record. The size of each record in EMF spool format MUST be rounded up to a multiple of 4 bytes.

EmfMetafile (variable): A complete EMF metafile.