大网数据广告活动
打印与设备

Scoping Prefix

· 52CE 我爱测

A scope prefix is a textual label pre-appended to a schema keyword to provide a contextual scope, including Job, Document, and Page.

This topic is not current. For the most current information, see the Print Schema Specification.

A scope prefix is a textual label pre-appended to a schema keyword to provide a contextual scope. This allows ascribing a specific and well-understood context to keywords in a predefined manner. Print Schema Feature, ParameterDef, ParameterInit, and ParameterRef and root-level Property keyword Elements MUST have one of the following scope prefixes: "Job", "Document", or "Page".

Interpretation of the Scoping Prefix with PrintTicket Content

The PrintTicket can be broken down into three content levels representing the high level job, the documents in the job, and the pages in each document. These levels are ranked according to specificity; the Job Level is most general, then the Document Level and then the Page Level is most specific. A job consists of one or more documents and a document consists of one or more pages.

Job level Prefix

A Job Level ticket contains all job formatting settings intended to apply to an entire job. Any Elements with scope prefixes of "Job", "Document" or "Page" are permitted in a Job Level ticket.

The "Document" and "Page" prefixed settings specified in a Job Level ticket will be automatically applied to the Document and Page Level tickets.

Document level Prefix

The Document Level ticket incorporates any job formatting settings intended to apply to one or more documents in a job. These may include settings previously specified in the Job Level ticket. Only Elements with scope prefixes of "Document" or "Page" are allowed in a Document Level ticket.

A Document Level Ticket may contain Document-prefixed settings previously specified by the Job level Ticket.

Page level Prefix

The Page Level ticket incorporates any job formatting settings intended to apply to one or more pages a job (not limited to a single document). These may include settings previously specified in the Job or Document Level ticket. Only Elements with scope prefixes of "Page" are allowed in a Page Level ticket.

A Page Level Ticket may contain "Page" prefixed settings previously specified by the Job Level Ticket and/or the Document level ticket.

Prefix Usage within a PrintTicket or Print Capabilities Document

PrintTicket and PrintCapabilities documents MUST NOT contain multiple keywords that differ only in the scoping prefix.? For example, a PrintCapabilities document MUST NOT have both JobInputBin and PageInputBin specified.? However, a Print Capabilities document MAY have both JobDuplexAllDocumentsContiguously and DocumentDuplex specified because these are considered different features, as they exhibit differing behavior.? This example is also true for a single PrintTicket.

Prefix Conflict Management

A keyword conflict between settings is defined as, the same root level Print Schema Element denoted by the XML Attribute "name", appearing in multiple Level tickets. If there is no conflict, a prefix scoped Element may be pushed down, or inherited, from a more general ticket to a more specific ticket. If there is a conflict, then the setting from the most specific ticket takes precedence. That is, per page settings in a Page Level ticket override the identical per page settings in a Document or Job Level ticket. Similarly, document settings in the Document Level ticket take precedence over document settings in the Job Level ticket.

Related topics

Print Schema Specification

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。