w:paperSrc (Paper Source)

Specifies the printer paper source tray for the first page and subsequent pages of a section.

Parent elements

Description

w:paperSrc selects the printer paper tray from which paper is fed for pages in the section. This allows different sections to use different paper stocks — for example, a letterhead tray for the first page and a plain paper tray for subsequent pages.

It is defined in ECMA-376 Part 1 §17.6.9.

The tray values are printer-specific integers and therefore vary between devices. Standard values from the Windows DEVMODE structure are commonly used.

Attributes

Attribute Type Possible Values Description
w:first xsd:integer Printer-specific tray ID Tray used for the first page of the section.
w:other xsd:integer Printer-specific tray ID Tray used for all subsequent pages of the section.

Examples

<!-- First page from tray 1 (letterhead), subsequent from tray 2 -->
<w:sectPr>
  <w:paperSrc w:first="1" w:other="2"/>
  <w:pgSz w:w="12240" w:h="15840"/>
</w:sectPr>

Notes

  • Tray IDs are not standardized across printers. Common Windows DEVMODE constants include DMBIN_UPPER (1), DMBIN_LOWER (2), DMBIN_MANUAL (4).
  • When w:first and w:other use the same value, the same tray is used for the entire section.
  • Most PDF renderers and screen renderers ignore w:paperSrc.