# MakePagedMetafiles Method

## Applies to

THtmlViewer component

## Declaration

function MakePagedMetafiles(Width, Height: integer): TList;

## Description

The MakePagedMetafiles method produces a series of metafiles of an HTML document divided into pages.

ResultA TList of TMetafiles.

WidthThe width of the metafiles.

HeightThe height of the metafiles.

This function differs from MakeMetafile in that it is sensitive to the CSS Page-Break properties and the <Page> tag. It also does not split text lines and makes an attempt to keep from splitting tables.

No extra margins are included in the Width and Height dimension. If margins are required, they should be added when the metafiles are displayed.

## See Also:

MakeMetafile Method

MakeBitmap Method