共用方式為


XpsAnalyzer 規則

下表描述 XpsAnalysis 工具用來分析 XPS 檔案的規則。 這些規則是以 XML 紙張規格 (XPS) 1.0 規格為基礎。 如需此規格的詳細資訊,請下載 XML 檔規格

(OPC) 規則開啟封裝慣例

規則名稱 資料類型 說明

CompressionOption

string

XPS 套件之 Compression 選項的值。

CorruptedOpc

bool

如果 XPS 套件不符合 OPC 規格,則為 True。

ForeignContentType

string

不屬於 XPS 規格一部分的內容類型。

ForeignRelationshipType

string

不屬於 XPS 1.0 規格一部分的關聯性類型。

LargePartCount

long

其大小超過指定數量的元件數目。

MaxFileSizeInBytes

long

XPS 套件內元件集的大小上限。

MaxPartRelationships

long

XPS 套件部分的關聯性數目上限。

PackageRelationshipCount

long

XPS 套件中的關聯性總數。

PartCount

long

OPC 檔案中的元件總數。

TotalPartRelationships

long

元件關聯性的總數。

XPS 主幹規則

規則名稱 資料類型 說明

CorruptedXpsTrunk

bool

True 是表示 如果 XPS 套件不符合 XPS 1.0 規格 (主幹層級) 。

FixedDocumentCount

long

XPS 套件中的檔總數。

HasCoreProperties

bool

如果 XPS 套件包含 XPS 核心屬性部分,則為 True。

HasDiscardControl

bool

如果 XPS 套件包含 DiscardControl 元件,則為 True。

HasDocumentPrintTicket

bool

如果 XPS 套件包含檔層級 PrintTicket,則為 True。

HasDocumentStructure

bool

如果 XPS 套件包含 DocumentStructure 元素,則為 True。

HasJobPrintTicket

bool

如果 XPS 套件包含 DocumentSequence 層級 PrintTicket,則為 True。

HasMoreThanOneSignatureBlockResourceInADocument

bool

如果 XPS 套件包含具有多個簽章區塊資源的檔,則為 True。

PackageThumbnailType

string

XPS 套件層級縮圖的影像類型。

SignatureBlockRequestCount

long

XPS 套件中的簽章總數。

XPS 頁面規則

規則名稱 資料類型 說明

BleedBoxDimension

string

XPS 套件中 NonDefault BleedBox 的維度。

BrushCount

long

XPS 套件中的 Brushes 元素總數。

CanvasCount

long

XPS 套件中的 Canvas 元素總數。

CanvasLanguage

string

Canvas 專案的語言。

CanvasOpacityMaskBrush

string

Canvas OpacityMask 專案的筆刷類型。

ContentBoxDimension

string

XPS 套件中 NonDefault ContentBox 的維度。

CorruptedXpsPage

bool

True 是表示 如果 XPS 套件不符合 XPS 1.0 規格 (頁面層級) 。

FixedPageCount

long

XPS 套件中的 Page 元素總數。

FontType

string

XPS 套件中找到的字型類型。

GeometryCount

long

XPS 套件中的 Geometry 元素總數。

GeometryFigureClosedFilledPatternRule

string

GeometryFigure 的類型。

GeometryFigureMaxSegmentCount

long

GeometryFigures 中的 SegmentCount 元素數目上限。

GeometryFigureMaxSegmentDataCount

long

GeometryFigures 中的 SegmentDataCount 元素數目上限。

GeometryFigureSegmentStrokePattern

string

GeometryFigures 元素的筆劃圖樣。

GeometryFigureSegmentType

string

GeometryFigure 元素的區段類型。

GeometryFillRule

string

幾何的 FillRule。

GlyphsBidiLevel

long

字元的 BidiLevel。

GlyphsCount

long

XPS 套件中的字元元素總數。

GlyphsFillBrush

string

字元填滿的筆刷類型。

GlyphsLanguage

string

字元的語言。

GlyphsOpacityMaskBrush

string

圖像不透明度遮罩的筆刷類型。

GlyphsStyleSimulations

string

字元的 StyleSimulations。

HasCanvasClipGeometryLocal

bool

如果 XPS 套件包含具有本機 ClipGeometry 的 Canvas 元素,則為 True。

HasCanvasClipGeometryRemote

bool

如果 XPS 套件包含具有遠端 ClipGeometry 的 Canvas 元素,則為 True。

HasCanvasHyperlinkTarget

bool

如果 XPS 套件包含具有 HyperlinkTarget 的 Canvas 元素,則為 True。

HasCanvasName

bool

如果 XPS 套件包含具有 Name 屬性的 Canvas 元素,則為 True。

HasCanvasOpacityEqualsOne

bool

如果 XPS 套件包含 Opacity=1 的 Canvas 元素,則為 True。

HasCanvasOpacityEqualsToZero

bool

如果 XPS 套件包含 Opacity=0 的 Canvas 元素,則為 True。

HasCanvasOpacityMaskBrushLocal

bool

如果 XPS 套件包含具有本機 OpacityMaskBrush 的 Canvas 元素,則為 True。

HasCanvasOpacityMaskBrushRemote

bool

如果 XPS 套件包含具有遠端 OpacityMaskBrush 的 Canvas 元素,則為 True。

HasCanvasTransformLocal

bool

如果 XPS 套件包含具有本機 MatrixTransform 的 Canvas 元素,則為 True。

HasCanvasTransformRemote

bool

如果 XPS 套件包含具有遠端 MatrixTransform 的 Canvas 元素,則為 True。

HasCanvasWithAccessibilityLongDescription

bool

如果 XPS 套件包含具有 AccessibilityLongDescription 的 Canvas 元素,則為 True。

HasCanvasWithAccessibilityShortDescription

bool

如果 XPS 套件包含具有 AccessibilityShortDescription 的 Canvas 元素,則為 True。

HasCanvasWithUseAliasedEdgeMode

bool

如果 XPS 套件包含具有 UseAliasedEdgeMode=True 的 Canvas 元素,則為 True。

HasColorProfile

bool

如果 XPS 套件包含 ColorProfile,則為 True。

HasGeometryFigureWithMultipleSegmentTypes

bool

如果 XPS 套件包含具有多個區段類型的 GeometryFigure 元素,則為 True。

HasGeometryFigureWithNonDefaultStartPoint

bool

如果 XPS 套件包含非預設 StartPoint (0.0,0.0) 的 GeometryFigure 元素,則為 True。

HasGeometryTransformLocal

bool

如果 XPS 套件包含具有本機 MatrixTransform 的幾何,則為 True。

HasGeometryTransformRemote

bool

如果 XPS 套件包含具有遠端 MatrixTransform 的幾何,則為 True。

HasGlyphsClipGeometryLocal

bool

如果 XPS 套件包含具有本機 ClipGeometry 的字元,則為 True。

HasGlyphsClipGeometryRemote

bool

如果 XPS 套件包含具有遠端 ClipGeometry 的 Glyphs 元素,則為 True。

HasGlyphsDeviceFontName

bool

如果 XPS 套件包含具有 DeviceFontName 的 Glyphs 元素,則為 True。

HasGlyphsFillBrushLocal

bool

如果 XPS 套件包含具有本機 FillBrush 的 Glyphs 元素,則為 True。

HasGlyphsFillBrushRemote

bool

如果 XPS 套件包含具有遠端 FillBrush 的 Glyphs 元素,則為 True。

HasGlyphsFontFaceIndex

bool

如果 XPS 套件包含具有 FontFaceIndex 的 Glyphs 元素,則為 True。

HasGlyphsHyperlinkTarget

bool

如果 XPS 套件包含具有 HyperlinkTarget 的 Glyphs 元素,則為 True。

HasGlyphsName

bool

如果 XPS 套件包含具有 Name 屬性的 Glyphs 元素,則為 True。

HasGlyphsOpacityEqualsOne

bool

如果 XPS 套件包含具有 Opacity=1 的 Glyphs 元素,則為 True。

HasGlyphsOpacityEqualsToZero

bool

如果 XPS 套件包含 Opacity=0 的 Glyphs 元素,則為 True。

HasGlyphsOpacityMaskBrushLocal

bool

如果 XPS 套件包含具有本機 OpacityMaskBrush 的 Glyphs 元素,則為 True。

HasGlyphsOpacityMaskBrushRemote

bool

如果 XPS 套件包含具有遠端 OpacityMaskBrush 的 Glyphs 元素,則為 True。

HasGlyphsTransformLocal

bool

如果 XPS 套件包含具有本機 MatrixTransform 的 Glyphs 元素,則為 True。

HasGlyphsTransformRemote

bool

如果 XPS 套件包含具有遠端 MatrixTransform 的 Glyphs 元素,則為 True。

HasGlyphsUnicodeString

bool

如果 XPS 套件包含具有 UnicodeString 的 Glyphs 元素,則為 True。

HasGlyphsWithSideways

bool

如果 XPS 套件包含已啟用 IsSideways 屬性的 Glyphs 元素,則為 True。

HasHyperlinkTarget

bool

如果 XPS 套件包含具有 aHyperlink 目標的頁面,則為 True。

HasImageBrushOpacityEqualsToOne

bool

如果 XPS 套件包含具有 Opacity=1 的 ImageBrush,則為 True。

HasImageBrushOpacityEqualsToZero

bool

如果 XPS 套件包含具有 Opacity=0 的 ImageBrush,則為 True。

HasImageBrushTransformLocal

bool

如果 XPS 套件包含具有 Local MatrixTransform 的 ImageBrush,則為 True。

HasImageBrushTransformRemote

bool

如果 XPS 套件包含具有 Remote MatrixTransform 的 ImageBrush,則為 True。

HasImageBrushWithColorProfileResource

bool

如果 XPS 套件包含具有 ColorProfileResource 的 ImageBrush,則為 True。

HasImageBrushWithNonDefaultViewBox

bool

True 是表示 如果 XPS 套件包含具有 NonDefault ViewBox (0, 0, 1, 1) 的 ImageBrush。

HasImageBrushWithNonDefaultViewPort

bool

True 是表示 如果 XPS 套件包含具有 NonDefault ViewPort (0, 0, 1, 1) 的 ImageBrush。

HasLinearGradientBrushOpacityEqualsToOne

bool

如果 XPS 套件包含具有 Opacity=1 的 LinearGradientBrush,則為 True。

HasLinearGradientBrushOpacityEqualsToZero

bool

如果 XPS 套件包含具有 Opacity=0 的 LinearGradientBrush,則為 True。

HasLinearGradientBrushTransformLocal

bool

True 是表示 如果 XPS 套件包含具有 Local MatrixTransform 的 LinearGradientBrush。

HasLinearGradientBrushTransformRemote

bool

True 是表示 如果 XPS 套件包含具有 Remote MatrixTransform 的 LinearGradientBrush。

HasLinearGradientBrushWithColorProfileResource

bool

True 是表示 如果 XPS 套件包含具有 ColorProfileResource 的 LinearGradientBrush。

HasLinearGradientBrushWithNonDefaultEndPoint

string

如果 XPS 套件包含具有 NonDefault EndPoint 的 LinearGradientBrush,則為 True。

HasLinearGradientBrushWithNonDefaultGradientStopOffset

bool

如果 XPS 套件包含具有 NonDefault GradientStopOffset 的 LinearGradientBrush,則為 True。

HasLinearGradientBrushWithNonDefaultStartPoint

string

如果 XPS 套件包含具有 NonDefault StartPoint 的 LinearGradientBrush,則為 True。

HasLocalDictionary

bool

如果 XPS 套件包含使用本機字典的頁面,則為 True。

HasNonDefaultBleedBox

bool

如果 XPS 套件包含具有 NonDefault BleedBox 值的頁面,則為 True。

HasNonDefaultContentBox

bool

如果 XPS 套件包含具有 NonDefault ContentBox 值的頁面,則為 True。

HasPageName

bool

如果 XPS 套件包含已設定 Name 屬性的頁面,則為 True。

HasPagePrintTicket

bool

如果 XPS 套件包含 Page 層級 PrintTicket,則為 True。

HasPathClipGeometryLocal

bool

如果 XPS 套件包含具有本機 ClipGeometry 的路徑,則為 True

HasPathClipGeometryRemote

bool

如果 XPS 套件包含具有遠端 ClipGeometry 值的 Path,則為 True。

HasPathFillBrushLocal

bool

如果 XPS 套件包含具有本機 FillBrush 的路徑,則為 True。

HasPathFillBrushRemote

bool

如果 XPS 套件包含具有遠端 FillBrush 的路徑,則為 True。

HasPathGeometryLocal

bool

如果 XPS 套件包含具有本機 Geometry 屬性的路徑,則為 True。

HasPathGeometryRemote

bool

如果 XPS 套件包含具有遠端 Geometry 屬性的 Path,則為 True。

HasPathHyperlinkTarget

bool

如果 XPS 套件包含具有 HyperlinkTarget 值的 Path,則為 True。

HasPathName

bool

如果 XPS 套件包含具有 Name 屬性的路徑,則為 True。

HasPathOpacityEqualsOne

bool

如果 XPS 套件包含不透明度=1 的路徑,則為 True。

HasPathOpacityEqualsToZero

bool

如果 XPS 套件包含不透明度=0 的路徑,則為 True。

HasPathOpacityMaskBrushLocal

bool

如果 XPS 套件包含具有本機 OpacityMaskBrush 值的 Path,則為 True。

HasPathOpacityMaskBrushRemote

bool

如果 XPS 套件包含具有遠端 OpacityMaskBrush 的路徑,則為 True。

HasPathStrokeBrushLocal

bool

如果 XPS 套件包含具有本機 StrokeBrush 屬性的 Path,則為 True。

HasPathStrokeBrushRemote

bool

如果 XPS 套件包含具有遠端 StrokeBrush 屬性的 Path,則為 True。

HasPathStrokeDashOffset

bool

如果 XPS 套件包含 StrokeDashOffset 的路徑,則為 True。

HasPathTransformLocal

bool

如果 XPS 套件包含具有本機 MatrixTransform 的路徑,則為 True。

HasPathTransformRemote

bool

如果 XPS 套件包含具有遠端 MatrixTransform 的路徑,則為 True。

HasPathWithAccessibilityLongDescription

bool

如果 XPS 套件包含具有 AccessibilityLongDescription 值的路徑,則為 True。

HasPathWithAccessibilityShortDescription

bool

如果 XPS 套件包含 AccessyShortDescription 的路徑,則為 True

HasPathWithNonDefaultStrokeMiterLimit

bool

如果 XPS 套件包含具有 NonDefault StrokeMiterLimit 的路徑,則為 True。

HasPathWithNonDefaultStrokeThickness

bool

如果 XPS 套件包含具有 NonDefault StrokeThickness 的路徑,則為 True。

HasPathWithSnapsToPixel

bool

如果 XPS 套件包含具有 SnapToPixels 值的 Path,則為 True。

HasRadialGradientBrushOpacityEqualsToOne

bool

如果 XPS 套件包含 Opacity=1 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushOpacityEqualsToZero

bool

如果 XPS 套件包含 Opacity=0 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushTransformLocal

bool

如果 XPS 套件包含具有 Local MatrixTransform 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushTransformRemote

bool

如果 XPS 套件包含具有 Remote MatrixTransform 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushWithColorProfileResource

bool

如果 XPS 套件包含具有 ColorProfileResource 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushWithNonDefaultCenter

bool

如果 XPS 套件包含具有 NonDefault Center 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushWithNonDefaultGradientOrigin

bool

如果 XPS 套件包含具有 NonDefault GradientOrigin 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushWithNonDefaultGradientStopOffset

bool

如果 XPS 套件包含具有 NonDefault GradientStopOffset 的 RadialGradientBrush,則為 True。

HasRadialGradientBrushWithNonDefaultRadiiSizes

bool

如果 XPS 套件包含具有 NonDefault RadiiSizes 的 RadialGradientBrush,則為 True。

HasRemoteDictionary

bool

如果 XPS 套件包含使用 RemoteDictionary 的頁面,則為 True。

HasSolidColorBrushOpacityEqualsToOne

bool

如果 XPS 套件包含 Opacity=1 的 SolidColorBrush,則為 True。

HasSolidColorBrushOpacityEqualsToZero

bool

如果 XPS 套件包含 Opacity=0 的 SolidColorBrush,則為 True。

HasSolidColorBrushWithColorProfileResource

bool

如果 XPS 套件包含具有 ColorProfileResource 的 SolidColorBrush,則為 True。

HasStoryFragment

bool

如果 XPS 套件包含 StoryFragment 元件,則為 True。

HasVisualBrushOpacityEqualsToOne

bool

如果 XPS 套件包含具有 Opacity=1 的 VisualBrush 元素,則為 True。

HasVisualBrushOpacityEqualsToZero

bool

如果 XPS 套件包含具有 Opacity=0 的 VisualBrush 元素,則為 True。

HasVisualBrushTransformLocal

bool

如果 XPS 套件包含具有 Local MatrixTransform 的 VisualBrush 元素,則為 True。

HasVisualBrushTransformRemote

bool

如果 XPS 套件包含具有 Remote MatrixTransform 的 VisualBrush 元素,則為 True。

HasVisualBrushWithLocalCanvas

bool

如果 XPS 套件包含具有 Local Canvas 的 VisualBrush 元素,則為 True。

HasVisualBrushWithLocalGlyphs

bool

如果 XPS 套件包含具有 Local Glyphs 的 VisualBrush 元素,則為 True。

HasVisualBrushWithLocalPath

bool

如果 XPS 套件包含具有本機路徑的 VisualBrush 元素,則為 True。

HasVisualBrushWithNonDefaultViewBox

bool

如果 XPS 套件包含具有 NonDefault ViewBox (0、0、1、1) 的 VisualBrush 元素,則為 True。

HasVisualBrushWithNonDefaultViewPort

bool

如果 XPS 套件包含具有 NonDefault ViewPort (0、0、1、1) 的 VisualBrush 元素,則為 True。

HasVisualBrushWithRemoteCanvas

bool

如果 XPS 套件包含具有 Remote Canvas 的 VisualBrush 元素,則為 True。

HasVisualBrushWithRemoteGlyphs

bool

如果 XPS 套件包含具有 Remote Glyphs 的 VisualBrush 元素,則為 True。

HasVisualBrushWithRemotePath

bool

如果 XPS 套件包含具有遠端路徑的 VisualBrush 元素,則為 True。

ImageBrushCount

long

XPS 套件中的 ImageBrush 元素總數。

ImageBrushTileMode

string

ImageBrush 元素的 TileMode 值。

ImageBrushType

string

ImageBrush 元素的 Image 類型值。

LinearGradientBrushColorInterpolationMode

string

LinearGradientBrush 元素的 ColorInterpolationMode 值。

LinearGradientBrushColorType

string

LinearGradientBrush 元素的 Color Type 值。

LinearGradientBrushCoNtextColorChannelCount

string

LinearGradientBrush 元素的內容色彩通道計數值。

LinearGradientBrushCount

long

XPS 套件中的 LinearGradientBrush 元素總數。

LinearGradientBrushSpreadMethod

string

LinearGradientBrush 元素的 SpreadMethod 值。

LinkTargetsCount

long

XPS 套件中的 LinkTargets 元素總數。

LocalDictionaryContent

string

在此本機字典中找到的可共用物件類型。

MaxGlyphsFontRenderingEMSize

long

Glyphs 專案中的最大 FontRenderingEmSize。

MaxGlyphsIndicesInAGlyphs

long

Glyphs 專案中的索引大小上限。

MaxGlyphsMappingsInAGlyphs

long

Glyphs 專案中的 Mappings 大小上限。

MaxGlyphsProhibitedCaretStopCountInAGlyphs

long

Glyphs 專案中的 ProhibitedCaretStopCount 大小上限。

MaxGradientStopsInALinearGradientBrush

long

LinearGradientBrush 元素中的 GradientStops 數目上限。

MaxGradientStopsInARadialGradientBrush

long

RadialGradientBrush 專案中 GradientStops 的最大數目。

MaxStrokeDashesInAPath

long

Path 元素中的 StrokeDashes 數目上限。

PageDimension

string

XPS 套件中 Page 的寬度和高度。

PageLanguage

string

頁面的語言。

PageThumbnailType

string

頁面層級縮圖的影像類型。

PathCount

long

XPS 套件中的 Path 元素總數。

PathFillBrush

string

Path Fill 的筆刷類型。

PathLanguage

string

Path 元素的 Language 值。

PathOpacityMaskBrush

string

Path OpacityMask 的筆刷類型。

PathStrokeBrush

string

Path Stroke 屬性的筆刷類型。

PathStrokeDashCap

string

Path 元素的 StrokeDashCap 類型。

PathStrokeEndLineCap

string

Path 專案的 StrokeEndLineCap 值。

PathStrokeLineJoin

string

Path 元素的 StrokeLineJoin 值。

PathStrokeStartLineCap

string

Path 元素的 StrokeStartLineCap 值。

RadialGradientBrushColorInterpolationMode

string

RadialGradientBrush 元素的 ColorInterpolationMode 值。

RadialGradientBrushColorType

string

RadialGradientBrush 元素的 Color Type 值。

RadialGradientBrushCoNtextColorChannelCount

string

RadialGradientBrush 元素的內容色彩通道計數。

RadialGradientBrushCount

long

XPS 套件中的 RadialGradientBrush 元素總數。

RadialGradientBrushEllipseOrCircle

string

定義漸層筆刷是橢圓形或圓形。

RadialGradientBrushSpreadMethod

string

RadialGradientBrush 專案的 SpreadMethod 值。

RemoteDictionaryContent

string

在此遠端字典中找到的可共用物件類型。

SolidColorBrushColorType

string

SolidColorBrush 元素的 Color 類型。

SolidColorBrushCoNtextColorChannelCount

string

SolidColorBrush 元素的內容色彩通道計數。

SolidColorBrushCount

long

XPS 套件中的 SolidColorBrush 元素總數。

VisualBrushCount

long

XPS 套件中的 VisualBrush 元素總數。

VisualBrushTileMode

string

VisualBrush 元素的 TileMode 值。

VisualCount

long

XPS 套件中的視覺效果總數。

數位簽章規則

規則名稱 資料類型 說明

CorruptedDigitalSignature

bool

如果 XPS 套件包含損毀的數位簽章,則為 True。

SignatureCount

long

XPS 套件中的數位簽章總數。

XpsSignaturePolicy

string

Signature 元素的 XPS 簽章原則值。

HasInvalidXpsSignature

bool

如果 XPS 套件包含不正確 XPS Signature 元素,則為 True。

XpsSignatureStatus

string

簽章無效時,Signature 專案的 Signature Status 值。 換句話說,只有在 HasInvalidXpsSignature 為 True 時,才會啟用此規則。

MaxNumberOfCertificatesInASignature

long

Signature 元素中找到的憑證數目上限。

HasXpsSignatureWithEmptyID

bool

如果 XPS 套件包含具有空白識別碼的 XPS Signature 元素,則為 True。

SignatureTimeFormat

string

Signature 專案的 Signature Time Format 值。

MaxNumberOfCustomObjectsInASignature

long

Signature 元素中找到的自訂物件數目上限。

MaxNumberOfCustomReferencesInASignature

long

Signature 元素中找到的自訂參考數目上限。

其他規則

規則名稱 資料類型 說明

CorruptedPageRendering

bool

如果 XPS 套件包含不可轉譯的頁面,則為 True。