docx

    Type Alias IPageSizeAttributes

    type IPageSizeAttributes = {
        code?: number;
        height: number | PositiveUniversalMeasure;
        orientation?: typeof PageOrientation[keyof typeof PageOrientation];
        width: number | PositiveUniversalMeasure;
    }
    Index

    Properties

    code?: number

    Specifies a printer-specific paper code for the paper type, which shall be used by the printer for pages in this section.

    This code is stored to ensure the proper paper type is chosen if the specified paper size matches the sizes of multiple paper types supported by the current printer.

    It will be sent to the printer and used by the printer to determine the appropriate paper type to use when printing.

    This value is not interpreted or modified other than storing it as specified by the printer.

    The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16).

    height: number | PositiveUniversalMeasure

    Specifies the height (in twentieths of a point) for all pages in the current section.

    
    

    All pages in this section are displayed on a page that is 12240 twentieths of a point (8.5") tall.

    The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105).

    orientation?: typeof PageOrientation[keyof typeof PageOrientation]

    Specifies the orientation of all pages in this section.

    This information is used to determine the actual paper size to use on the printer.

    This implies that the actual paper size width and height are reversed for pages in this section. If this attribute is omitted, then portrait shall be implied.

    
    

    Although the page width is 11", and page height is 8.5", according to the w and h attributes, because the orient attribute is set to landscape, pages in this section are printed on 8.5x11" paper in landscape mode.

    The possible values for this attribute are defined by the ST_PageOrientation simple type (§2.18.71).

    width: number | PositiveUniversalMeasure

    This attribute indicates the width (in twentieths of a point) for all pages in the current section.

    
    

    All pages in this section are displayed on a page that is 15840 twentieths of a point (11") wide.

    The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105).

    MMNEPVFCICPMFPCPTTAAATR