17.15.2.1 allowPNG

This element specifies that applications shall allow use of the PNG file format when the contents of this WordprocessingML document are saved as a web page. This includes all supporting images used as part of this HTML web page.

If this element is omitted from the document, then the PNG file format shall not be allowed when this document is saved as a web page, and that another suitable file format (such as the JPEG file format) should be utilized in its place.

[Note: This setting is intended for applications to save web pages which can be supported by legacy web browsers which do not support the reading of PNG images. However, although PNG utilizes a lossless compression algorithm, JPEG uses ’lossy’ compression and can in some cases result in lower fidelity images. end note]

[Example: Consider a WordprocessingML document which contains the following content within the web settings part:

<w:webSettings>
  <w:allowPNG w:val="true" />
</w:webSettings>

The allowPNG element has a val attribute value of true, which specifies that applications can use the PNG graphic format as needed when saving this WordprocessingML document as a web page. end example]

This element’s content model is defined by the common boolean property definition in 17.17.4.

Last updated on