取得透過 通用列印連線程式 註冊的印表機功能
處理
若要將印表機的功能從其驅動程式轉換成支援的 IPP 屬性,通用印表會遵循下列程式:
步驟 1:連接器會從透過其印表裝置功能 (PDC) 使用的驅動程式取得印表機的功能。 如果 PDC 無法使用,通用列印會使用列印功能 (PC) 和列印票證 (PT) 的組合來產生 PDC。
步驟 2:通用列印會剖析 PDC XML,並將元素和選項對應至 IPP 印表機描述屬性(PDA)。 如果找不到對應,則會忽略 PDC 印表屬性,並從通用列印印表機選項卸除。 例如,如果 A6 紙張選項列在 下方 PageMediaSize
, ns0001:ISOA6_PAPER
則無法辨識該選項。 不過,如果包含它, psk:ISOA6
則會接受並轉換成對應的 IPP 屬性。
命名空間
將最上層 PDC 元素對應至 IPP 印表機描述屬性時,通用列印只會查看項目的名稱,並忽略命名空間。 例如, psk:PageOutputColor
會對應至 print-color-mode-supported
,但如果元素是 ns0001:PageOutputColor
,它仍會正確地對應至 print-color-mode-supported
。
針對元素下方的選項,通用列印有時會要求命名空間符合,且目前支援下列命名空間。 如果在 PDC 與 IPP 對應資料表中未指定任何命名空間,這表示不論命名空間為何,都會執行轉換。
Namespace | URL |
---|---|
ns0000 |
http://schemas.microsoft.com/windows/2018/04/printing/printschemakeywords/Ipp |
xsi |
http://www.w3.org/2001/XMLSchema-instance |
xsd |
http://www.w3.org/2001/XMLSchema |
xml |
http://www.w3.org/XML/1998/namespace |
psk |
http://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords |
psk12 |
http://schemas.microsoft.com/windows/2013/12/printing/printschemakeywordsv12 |
psf |
http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework |
psf2 |
http://schemas.microsoft.com/windows/2013/12/printing/printschemaframework2 |
PDC 與 IPP 對應
以下是專案和選項如何從 PDC 對應至 IPP 的資訊。
PDC 最上層元素 | IPP 印表機描述屬性 | PDC 最上層元素底下的選項 | IPP 印表機描述屬性內的值 |
---|---|---|---|
PageOutputColor |
print-color-mode-supported print-color-mode-default |
psk:Monochrome |
monochrome |
psk:Color |
color |
||
psk:Grayscale |
monochrome |
||
psk:Highlight |
highlight |
||
JobCopiesAllDocuments |
copies-supported copies-default |
MaxValue |
做為 中的 copies-supported range 最大值。 1 一律作為最小值 |
DefaultValue |
用來做為 中的值 copies-default |
||
PageOrientation |
orientation-requested-supported orientation-requested-default |
psk:Portrait |
3 |
psk:Landscape |
4 |
||
psk:ReverseLandscape |
5 |
||
psk:ReversePortrait |
6 |
||
DocumentDuplex JobDuplexAllDocumentsContiguously |
sides-supported sides-default |
psk:OneSided |
one-sided |
psk:TwoSidedLongEdge |
two-sided-long-edge |
||
psk:TwoSidedShortEdge |
wwo-sided-short-edge |
||
PageMediaSize |
media-supported media-default media-col-database media-col-default |
_4X6 |
na_index-4x6_4x6in |
_5X7 |
na_5x7_5x7in |
||
_5X8 |
na_index-5x8_5x8in |
||
Br3x5 |
na_index-3x5_3x5in |
||
CreditCard |
om_card_54x86mm |
||
EnglishPhoto-L |
oe_photo-l_3.5x5in |
||
ISOA3 |
iso_a3_297x420mm |
||
ISOA4 |
iso_a4_210x297mm |
||
ISOA5 |
iso_a5_148x210mm |
||
ISOA6 |
iso_a6_105x148mm |
||
^ 請參閱附注 | ISOB5Envelope |
iso_b5_176x250mm |
|
^ 請參閱附注 | ISOC4Envelope |
iso_c4_229x324mm |
|
^ 請參閱附注 | ISOC5Envelope |
iso_c5_162x229mm |
|
^ 請參閱附注 | ISODLEnvelope |
iso_dl_110x220mm |
|
^ 請參閱附注 | JapanChou3Envelope |
jpn_chou3_120x235mm |
|
^ 請參閱附注 | JapanChou40Envelope |
jpn_chou40_90x225mm |
|
^ 請參閱附注 | JapanChou4Envelope |
jpn_chou4_90x205mm |
|
JapanHagakiPostcard |
jpn_hagaki_100x148mm |
||
^ 請參閱附注 | JapanKaku2Envelope |
jpn_kaku2_240x332mm |
|
^ 請參閱附注 | JapanYou4Envelope |
jpn_you4_105x235mm |
|
JISB4 |
jis_b4_257x364mm |
||
JISB5 |
jis_b5_182x257mm |
||
MetricPhoto-L |
om_dsc-photo_89x119mm |
||
NorthAmerica3x5 |
na_index-3x5_3x5in |
||
NorthAmerica4x6 |
na_index-4x6_4x6in |
||
NorthAmerica4x6Postcard |
na_index-4x6_4x6in |
||
NorthAmerica5x7 |
na_5x7_5x7in |
||
NorthAmerica5x8 |
na_index-5x8_5x8in |
||
NorthAmerica8x10 |
na_govt-letter_8x10in |
||
NorthAmerica11x17 |
na_ledger_11x17in |
||
NorthAmericaExecutive |
na_executive_7.25x10.5in |
||
NorthAmericaLegal |
na_legal_8.5x14in |
||
NorthAmericaLetter |
na_letter_8.5x11in |
||
^ 請參閱附注 | NorthAmericaMonarchEnvelope |
na_monarch_3.875x7.5in |
|
^ 請參閱附注 | NorthAmericaNumber10Envelope |
na_number-10_4.125x9.5in |
|
^ 請參閱附注 | NorthAmericaNumber9Envelope |
na_number-9_3.875x8.875in |
|
NorthAmericaStatement |
na_invoice_5.5x8.5in |
||
NorthAmericaTabloid |
na_ledger_11x17in |
||
MediaSizeWidth |
media-col entry : media-size ->x-dimension |
||
MediaSizeHeight |
media-col entry : media-size ->y-dimension |
||
BorderlessImageableSize |
media-col-entry : media-*-margin (計算)* 表示上、下、左、右 |
||
PortraitImageableSize |
media-col-entry : media-*-margin (計算) * 表示上、下、左、右 (只有在找不到專案時才 BorderlessImageableSize 使用) |
||
PageMediaType |
media-type-supported media-col-database media-col-default |
Auto |
auto |
AutoSelect |
auto |
||
Color |
stationery-colored |
||
Colored |
stationery-colored |
||
Envelope |
envelope |
||
EnvelopePlain |
envelope |
||
Heavy |
stationery-heavyweight |
||
HeavyweightPaper |
stationery-heavyweight |
||
Label |
labels |
||
Labels |
labels |
||
Letterhead |
stationery-letterhead |
||
Light |
stationery-lightweight |
||
LightweightPaper |
stationery-lightweight |
||
LxkColorPaper |
stationery-colored |
||
LxkHeavy |
stationery-heavyweight |
||
LxkLight |
stationery-Lightweight |
||
MediaAutoSelect |
auto |
||
Photographic |
photographic |
||
PhotographicGlossy |
photographic-glossy |
||
PhotographicHighGloss |
photographic-high-gloss |
||
PhotographicSemiGloss |
Photographic-semi-gloss |
||
Plain |
stationery |
||
Thick |
stationery-heavyweight |
||
Thin |
stationery-lightweight |
||
Transparency |
transparency |
||
stationery-letterhead |
stationery-letterhead |
||
stationery-lightweight |
stationery-lightweight |
||
DocumentNUp JobNUpAllDocumentsContiguously |
number-up-supported number-up-default |
Psk:PagesPerSheet |
逐一查看所有 PDC PagesPerSheet 元素,將它們新增至支援的一組值。 使用的預設專案 number-up-default 。 |
DocumentCollate |
multiple-document-handling-supported multiple-document-handling-default 注意:通用列印目前不支援多個文件作業 |
psk:Collated |
separate-documents-collated-copies |
Psk:Uncollated |
separate-documents-uncollated-copies |
||
JobInputBin |
media-source-supported media-col-database media-col-default |
Alternate |
alternate |
AlternateRoll |
alternate-roll |
||
Auto |
auto |
||
AutoSelect |
auto |
||
autoselect |
auto |
||
Bottom |
bottom |
||
ByPassTray |
by-pass-tray |
||
Bypass-Tray |
by-pass-tray |
||
Cassette |
tray-1 |
||
Center |
center |
||
Disc |
disc |
||
Envelope |
envelope |
||
EnvFeed |
envelope |
||
Hagaki |
hagaki |
||
LargeCapacity |
large-capacity |
||
Lct |
large-capacity |
||
Left |
left |
||
LxkTray1 |
tray-1 |
||
Main |
main |
||
MainRoll |
main-roll |
||
Manual |
manual |
||
ManualFeed |
manual |
||
Middle |
middle |
||
Photo |
photo |
||
Rear |
rear |
||
Right |
right |
||
Side |
side |
||
Top |
top |
||
DRAWER* (* indicates numbers 1 through 4) |
tray-* |
||
Roll* (* indicates numbers 1 through 10) |
roll-* |
||
Roll-* (* indicates numbers 1 through 10) |
roll-* |
||
Tray* (* indicates numbers 1 through 20) |
tray-* |
||
Tray-* (* indicates numbers 1 through 20) |
tray-* |
||
Cassette* (* indicates numbers 1 through 20) |
tray-* |
||
Cassette-* (* indicates numbers 1 through 20) |
tray-* |
||
psk:FeedDirection (在每個 JobInputBin 元素下) |
media-source-feed-direction (在參賽作品中 media-source-properties media-col ) |
||
psk:ShortEdgeFirst |
short-edge-first (如果 FeedDirection 找不到元素,請使用short-edge-first ) |
||
psk:LongEdgeFirst |
long-edge-first |
||
JobOutputBin |
output-bin-supported output-bin-default |
Auto |
auto |
Bottom |
bottom |
||
BottomBin |
bottom |
||
Center |
center |
||
CenterBin |
center |
||
DestBulkTray |
large-capacity |
||
DestBulkTrayFU |
stacker-1 |
||
DestMailbox |
my-mailbox |
||
DestPrinterDefault |
auto |
||
DestSideTray |
side |
||
DestTopTray |
top |
||
FaceDown |
face-down |
||
Face-Down |
face-down |
||
FaceUp |
face-up |
||
Face-Up |
face-up |
||
LargeCapacity |
large-capacity |
||
Large-Capacity |
large-capacity |
||
LargeStacker |
stacker-1 |
||
LargeStacker2 |
stacker-2 |
||
Left |
left |
||
LeftBin |
left |
||
LeftTray |
left |
||
Middle |
middle |
||
MiddleBin |
middle |
||
MyMailbox |
my-mailbox |
||
My-Mailbox |
my-mailbox |
||
PrinterDefault |
auto |
||
Rear |
rear |
||
RearBin |
rear |
||
Right |
right |
||
RightBin |
right |
||
Side |
side |
||
SideBin |
side |
||
Stacker |
stacker-1 |
||
Top |
top |
||
TopBin |
top |
||
UpperTray |
top |
||
MailBoxBin* (* indicates numbers 1 through 9) |
mailbox-* |
||
OutputBin* (* indicates numbers 1 through 10) |
tray-* |
||
Tray* (* indicates numbers 1 through 20) |
tray-* |
||
Tray-* (* indicates numbers 1 through 20) |
tray-* |
||
Stacker* (* indicates numbers 1 through 10) |
stacker-* |
||
Stacker-* (* indicates numbers 1 through 10) |
stacker-* |
||
Mailbox* (* indicates numbers 1 through 25) |
mailbox-* |
||
Mailbox-* (* indicates numbers 1 through 25) |
mailbox-* |
||
PageResolution |
printer-resolution-supported printer-resolution-default |
ResolutionX |
數值的 printer-resolution X 值 |
ResolutionY |
值 Y 值printer-resolution |
||
JobNUpPresentationDirection |
presentation-direction-number-up-supported presentation-direction-number-up-default |
psk:RightBottom |
to-right-to-bottom |
psk:BottomRight |
to-bottom-to-right |
||
psk:LeftBottom |
to-left-to-bottom |
||
psk:BottomLeft |
to-bottom-to-left |
||
psk:RightTop |
to-right-to-top |
||
psk:TopRight |
to-top-to-right |
||
psk:LeftTop |
to-left-to-top |
||
psk:TopLeft |
to-top-to-left |
||
DocumentStaple JobStapleAllDocuments DocumentHolePunch JobHolePunch DocumentBinding JobBindAllDocuments |
finishings-supported finishings-default |
_1diagonal |
4 |
_1diagonalmax15 |
4 |
||
_1diagonalRight |
22 |
||
_1diagonalZT |
4 |
||
_1left |
20 |
||
_1parallel |
4 |
||
_1PLB_CN |
21 |
||
_1PLU_CN |
20 |
||
_1PRU_CN |
22 |
||
_1Right |
22 |
||
_1rightAngled |
22 |
||
_1Staple_PC |
4 |
||
_1StapleLeftLEPort_SH |
20 |
||
_1StapleRight_PC |
22 |
||
_1StapleRightREPort_SH |
22 |
||
_23PunchBottom |
77 |
||
_23PunchLeft |
74 |
||
_23PunchRight |
76 |
||
_23PunchTop |
75 |
||
_24PunchBottom |
77 |
||
_24PunchLeft |
74 |
||
_24PunchRight |
76 |
||
_24PunchTop |
75 |
||
_2leftCM8060 |
28 |
||
_2OnAbv |
93 |
||
_2OnRev |
93 |
||
_2parallel |
28 |
||
_2PB |
74 |
||
_2PBTOP |
75 |
||
_2PL |
74 |
||
_2PL_CN |
28 |
||
_2PLLandscape |
75 |
||
_2PU |
75 |
||
_2PU_CN |
29 |
||
_2PULEFT |
74 |
||
_2Right |
30 |
||
_2StaplesBottom_PC |
31 |
||
_2StaplesLeft_PC |
28 |
||
_2StaplesLeftLEPort_SH |
28 |
||
_2StaplesRight_PC |
30 |
||
_2StaplesRightREPort_SH |
30 |
||
_2StaplesTop_PC |
29 |
||
_2StaplesTopSEPort_SH |
29 |
||
_2topCM8060 |
29 |
||
_3OnBack |
100 |
||
_3OnFront |
100 |
||
_3PunchBottom |
81 |
||
_3PunchLeft |
78 |
||
_3PunchRight |
80 |
||
_3PunchTop |
79 |
||
_4OnObvIn |
97 |
||
_4OnObvOut |
97 |
||
_4OnRevIn |
97 |
||
_4OnRevOut |
97 |
||
_4PB |
82 |
||
_4PBTOP |
83 |
||
_4PL |
82 |
||
_4PLLandscape |
83 |
||
_4PU |
83 |
||
_4PULEFT |
82 |
||
_4PunchBottom |
85 |
||
_4PunchLeft |
82 |
||
_4PunchRight |
84 |
||
_4PunchTop |
83 |
||
Bale |
12 |
||
Bind |
7 |
||
BindBottom |
53 |
||
BindLeft |
50 |
||
BindRight |
52 |
||
BindTop |
51 |
||
COnDownL |
96 |
||
COnDownR |
96 |
||
COnUpL |
96 |
||
COnUpR |
96 |
||
EdgeStitch |
9 |
||
EdgeStitchBottom |
27 |
||
EdgeStitchLeft |
24 |
||
EdgeStitchRight |
26 |
||
EdgeStitchTop |
25 |
||
Fold |
10 |
||
FoldEngineeringZ |
101 |
||
FoldHalf |
93 |
||
FoldLetter |
96 |
||
FoldParallel |
97 |
||
FoldZ |
100 |
||
FourHolesBottom_PC |
85 |
||
FourHolesBottomSwd_PC |
85 |
||
FourHolesLeft_PC |
82 |
||
FourHolesLeftSwd_PC |
82 |
||
FourHolesRight_PC |
84 |
||
FourHolesRightSwd_PC |
84 |
||
FourHolesTop_PC |
83 |
||
FourHolesTopSwd_PC |
83 |
||
HolePunch |
5 |
||
HolePunchDualBottom |
77 |
||
HolePunchDualLeft |
74 |
||
HolePunchDualRight |
76 |
||
HolePunchDualTop |
75 |
||
HolePunchMultipleBottom |
89 |
||
HolePunchMultipleLeft |
86 |
||
HolePunchMultipleRight |
88 |
||
HolePunchMultipleTop |
87 |
||
HolePunchQuadBottom |
85 |
||
HolePunchQuadLeft |
82 |
||
HolePunchQuadRight |
84 |
||
HolePunchQuadTop |
83 |
||
HolePunchTripleBottom |
81 |
||
HolePunchTripleLeft |
78 |
||
HolePunchTripleRight |
80 |
||
HolePunchTripleTop |
79 |
||
InAnyPB |
74 |
||
InAnyPL |
78 |
||
InAnyPLLandscape |
79 |
||
InAnyPU |
79 |
||
JogOffset |
14 |
||
Longside_Left_or_Top |
50 |
||
Longside_Right_or_Bottom |
52 |
||
SaddleStitch |
8 |
||
Shortside_Left_or_Top |
51 |
||
Shortside_Right_or_Bottom |
53 |
||
Staple |
4 |
||
StapleBottomLeft |
21 |
||
StapleBottomRight |
23 |
||
StapleDualBottom |
31 |
||
StapleDualLeft |
28 |
||
StapleDualRight |
30 |
||
StapleDualTop |
29 |
||
StapleTopLeft |
20 |
||
StapleTopRight |
22 |
||
ThreeHolesBottom_PC |
81 |
||
ThreeHolesLeft_PC |
78 |
||
ThreeHolesRight_PC |
80 |
||
ThreeHolesTop_PC |
79 |
||
Trim |
11 |
||
TwoHolesBottom_PC |
77 |
||
TwoHolesLeft_PC |
74 |
||
TwoHolesRight_PC |
76 |
||
TwoHolesTop_PC |
75 |
||
ZOnL |
101 |
||
ZOnR |
101 |
||
Bottom |
89 |
||
BottomEdge |
89 |
||
InAnyPBLEFT |
86 |
||
InAnyPULEFT |
86 |
||
InAnyPUTOP |
87 |
||
Left |
86 |
||
LeftEdge |
86 |
||
Right |
88 |
||
RightEdge |
88 |
||
Top |
87 |
||
TopEdge |
87 |
||
PageOutputQuality |
print-quality-supported print-quality-default |
psk:Draft |
3 |
psk:Normal |
4 |
||
psk:High |
5 |
注意:
- 如果選項在 PDC 中標示為預設值,則會將其當做 *預設 IPP 屬性的值使用。
- 若要產生
media-col-database
,通用列印會新增媒體大小、媒體類型和媒體來源的所有可能組合。 - 若要產生
media-col-default
,通用列印會挑選使用預設大小、類型和來源的組合。 - 通用列印也可以新增無法從 PDC 翻譯的屬性,但根據莫普里亞的 IPP 規格(2.0 版)是必要的。
- 以 ^ 標示的媒體大小是最近新增至 Windows OS 的信封大小。 它們尚未出現在現有的 Windows 版本上。
診斷遺漏的印表機選項
這些步驟可用來診斷為什麼某些選項未針對透過 通用列印連線程式 註冊的通用列印印表機顯示。
- 在已註冊對應印表機的 通用列印連線程式 上,啟動連接器應用程式。
- 登入並選取正在調查的印表機。
- 按兩下 [收集診斷] 按鈕。 這會收集診斷資訊,並使用與印表機名稱對應的封存盤案啟動 檔案總管。 開啟 檔案以存取下列檔案:
- LocalPcPt.xml或LocalPdc.xml:這是通用列印為印表機挑選的 PDC 或 PC/PT。
- ServiceAttributes.txt:此檔案包含從 PDC 成功產生的 IPP 印表機描述屬性。
- ServicePdc.xml:這是從 ServiceAttributes.txt 中的 IPP 印表機描述屬性產生的 PDC。
- 比較 LocalPcPt/LocalPdc.xml 與ServiceAttributes.txt或ServicePdc.xml,以判斷哪些功能已轉換或卸除。
- 如果正在卸除功能,請參閱 印表機選項無法使用,或選取的印表機選項不會反映在列印輸出中。