2.2.3.2 Page Offset Records

The Page Offset records include two record types, and they both have the structure shown as follows. Page offset records specify the location of page content records in the EMF spool format metafile. Page content records are specified in section 2.2.3.1.


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

offset

...

ulID (4 bytes): A 32-bit unsigned integer that identifies the type of record, from the RecordType (section 2.1.1) enumeration.

Value

Meaning

EMRI_METAFILE_EXT

0x0000000D

Offset to a page content record.

EMRI_BW_METAFILE_EXT

0x0000000E

Offset to a page content record that contains only monochrome data.

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

offset (8 bytes): A 64-bit unsigned integer that specifies the offset, in bytes, from the start of the page offset record to the start of a page content record. That page content record MUST be located ahead of the corresponding page offset record, which means that the offset is counted backward in the metafile.