[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
pixelsPerInch (Pixels per Inch for Graphics/Images)
This element specifies the number of pixels per inch (or density) that will be used for the display of pictures or table cells when a WordprocessingML document is saved as a web page. The size that is specified by this element affects the size of the pictures or table cells relative to the size of text in the document. The pixels per inch (ppi) measurement is relative to the screen resolution, and the resulting physical dimensions of the resulting image or cell in pixels (which are used in web pages, but not for printed documents) are the result of the original dimensions (in inches) multiplied by the number of pixels per inch.
The range of values for this element is typically from 19 to 480 pixels per inch. The common settings for popular screen sizes are 72, 96, and 120 pixels per inch.
If this element is omitted, then a default size of 96 pixels per inch shall be used when determining the number of pixels for images and/or table cells within this document.
[Note: This setting is typically only specified if the target screen resolution for the web page is known, as defined by the targetScreenSz element (§2.15.2.41) to set the optimum screen size for the web page. end note]
[Example: Consider a WordprocessingML document which contains the following content within the web settings part:
<w:webSettings>
<w:pixelsPerInch w:val="200" />
</w:webSettings>
The pixelsPerInch element's val attribute has a value of 200, which specifies that all inches to pixels conversions done when saving this web page shall be done assuming a transformation of 200 pixels per inch. end example]
Parent Elements |
webSettings (§2.15.2.44) |
Attributes |
Description |
val (Decimal Number Value) |
Specifies that the contents of this attribute will contain a decimal number.
The contents of this decimal number are interpreted based on the context of the parent XML element.
[Example: Consider the following numeric WordprocessingML property of type ST_DecimalNumber:
<w:… w:val="1512645511" /> The value of the val attribute is a decimal number whose value must be interpreted in the context of the parent element. end example]
The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_DecimalNumber">
<attribute name="val" type="ST_DecimalNumber" use="required"/>
</complexType>