Class XpsDocument

Class XpsDocument

名称: Aspose.Page.XPS 集合: Aspose.Page.dll (25.4.0)

包含XPS文件的主要实体的类,提供操作任何XPS元素的方法。

public sealed class XpsDocument : Document, IDisposable

Inheritance

object Document XpsDocument

Implements

IDisposable

继承人

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

XpsDocument()

创建一个空的 XPS 文档,默认页面大小。

public XpsDocument()

XpsDocument(线条)

打开现有 XPS 文档,位于 path。

public XpsDocument(string path)

Parameters

path string

文件的位置。

XpsDocument(字符串, LoadOptions)

打开现有文件位于 path’ 作为 XPS 文件。

public XpsDocument(string path, LoadOptions options)

Parameters

path string

文件的位置。

options LoadOptions

文件加载选项。

XpsDocument(流量, LoadOptions)

加载已存在的文件存储在 stream’ 作为 XPS 文件。

public XpsDocument(Stream stream, LoadOptions options)

Parameters

stream Stream

文档流。

options LoadOptions

文件加载选项。

Properties

ActiveDocument

获取活跃文件号码。

public int ActiveDocument { get; }

财产价值

int

ActivePage

在活跃文件中获取活跃页面号码。

public int ActivePage { get; }

财产价值

int

DocumentCount

返回 XPS 包中的文件数量。

public int DocumentCount { get; }

财产价值

int

JobPrintTicket

返回/套件文件的工作印刷门票

public JobPrintTicket JobPrintTicket { get; set; }

财产价值

JobPrintTicket

Page

返回 Aspose.Page.XPS.XpsModel.XpsPage 示例为活跃的页面。

public XpsPage Page { get; }

财产价值

XpsPage

PageCount

返回活跃文件中的页数。

public int PageCount { get; }

财产价值

int

TotalPageCount

返回所有 XPS 文档中的页面总数。

public int TotalPageCount { get; }

财产价值

int

Utils

接收提供超越正式 XPS 操作 API 的工具的对象。

public DocumentUtils Utils { get; }

财产价值

DocumentUtils

Methods

添加T>(T)

添加内容元素(Canvas、Path 或 Glyphs)。

public T Add<t>(T element) where T : XpsContentElement

Parameters

element T

要添加的元素

Returns

T

添加元素。

类型参数

T

元素的类型。

AddCanvas()

添加一个新的字符串到活跃页面。

public XpsCanvas AddCanvas()

Returns

XpsCanvas

添加可口可乐

AddDocument(博尔)

添加一个空白的文件,默认页面大小。

public void AddDocument(bool activate = true)

Parameters

activate bool

表示是否选择添加文件作为活跃的旗帜。

AddDocument(浮动,浮动,浮动)

添加一个空白的文档,第一页的尺寸width’ 和 height'.

public void AddDocument(float width, float height, bool activate = true)

Parameters

width float

第一页的宽度。

height float

第一页的高度。

activate bool

表示是否选择添加文件作为活跃的旗帜。

AddGlyphs(字符串、字符串、字符串、字符串、字符串)

将新格利夫添加到活跃页面。

public XpsGlyphs AddGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

fontFamily string

字母家庭。

fontRenderingEmSize float

字体大小

fontStyle FontStyle

字体风格。

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

添加Glyphs

AddGlyphs(XpsFont, float, float, float, string)

将新格利夫添加到活跃页面。

public XpsGlyphs AddGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)

Parameters

font XpsFont

字体资源。

fontRenderingEmSize float

字体大小

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

添加Glyphs

AddOutlineEntry(字符串, int, XpsHyperlinkTarget)

添加一个输入文档的输入。

public void AddOutlineEntry(string description, int outlineLevel, XpsHyperlinkTarget target)

Parameters

description string

入口描述。

outlineLevel int

出口水平。

target XpsHyperlinkTarget

入口目标。

AddPage(博尔)

将空页添加到默认页面大小的文档中。

public XpsPage AddPage(bool activate = true)

Parameters

activate bool

标志表明是否选择添加页面作为活跃。

Returns

XpsPage

添加页面

AddPage(浮动,浮动,浮动)

将一个空白的页面添加到文件中,指定width’ 和 height'.

public XpsPage AddPage(float width, float height, bool activate = true)

Parameters

width float

一个新的页面。

height float

新页面的高度。

activate bool

标志表明是否选择添加页面作为活跃。

Returns

XpsPage

添加页面

AddPage(XpsPage 和 Bool)

将一页添加到文档中。

public XpsPage AddPage(XpsPage page, bool activate = true)

Parameters

page XpsPage

要添加的页面

activate bool

标志表明是否选择添加页面作为活跃。

Returns

XpsPage

添加页面

AddPath(XpsPathGeometry)

添加一个新的路径到活跃的页面。

public XpsPath AddPath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

路径的地质。

Returns

XpsPath

添加路径

CreateArcSegment(PointF, SizeF, float, bool, XpsSweepDirection, bool)

创建一个新的精密弓部分。

public XpsArcSegment CreateArcSegment(PointF point, SizeF size, float rotationAngle, bool isLargeArc, XpsSweepDirection sweepDirection, bool isStroked = true)

Parameters

point PointF

是精密弓的终点。

size SizeF

以 x 和 y 射线为 x,y 对。

rotationAngle float

它指示了对现行坐标系统的旋转方式。

isLargeArc bool

确定弓是否以180或更大的螺旋拖动。

sweepDirection XpsSweepDirection

它是指向弓的方向。

isStroked bool

指定是否对这条路线部分的冲击被拖动。

Returns

XpsArcSegment

新的精密弓序列。

CreateCanvas()

创建一个新的通道。

public XpsCanvas CreateCanvas()

Returns

XpsCanvas

新的Canvas

CreateColor(Color)

创造一个新的颜色。

public XpsColor CreateColor(Color color)

Parameters

color Color

原生颜色例子为RGB颜色。

Returns

XpsColor

新色彩。

CreateColor(int , int , int , int , int)

在 sRGB 颜色空间中创建新颜色。

public XpsColor CreateColor(int a, int r, int g, int b)

Parameters

a int

阿尔法颜色组成部分

r int

红色组件。

g int

绿色组件。

b int

蓝色组成部分。

Returns

XpsColor

新色彩。

CreateColor(int , int , int , int)

在 sRGB 颜色空间中创建新颜色。

public XpsColor CreateColor(int r, int g, int b)

Parameters

r int

红色组件。

g int

绿色组件。

b int

蓝色组成部分。

Returns

XpsColor

新色彩。

CreateColor(航海、航海、航海、航海)

在 scRGB 颜色空间中创建新颜色。

public XpsColor CreateColor(float a, float r, float g, float b)

Parameters

a float

阿尔法颜色组成部分

r float

红色组件。

g float

绿色组件。

b float

蓝色组成部分。

Returns

XpsColor

新色彩。

CreateColor(航海、航海、航海)

在 scRGB 颜色空间中创建新颜色。

public XpsColor CreateColor(float r, float g, float b)

Parameters

r float

红色组件。

g float

绿色组件。

b float

蓝色组成部分。

Returns

XpsColor

新色彩。

CreateColor(字符串, params float[])

创建新的颜色在基于ICC的颜色空间。

public XpsColor CreateColor(string path, params float[] components)

Parameters

path string

走向国际刑事法院的路径。

components float ( )

颜色组件。

Returns

XpsColor

新色彩。

CreateColor(XpsIccProfile, Params 浮动[])

创建新的颜色在基于ICC的颜色空间。

public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)

Parameters

iccProfile XpsIccProfile

ICC的资料来源。

components float ( )

颜色组件。

Returns

XpsColor

新色彩。

CreateFont(字符串、字符串)

创建一个新的 TrueType 字体资源。

public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)

Parameters

fontFamily string

字体家庭。

fontStyle FontStyle

字体风格。

Returns

XpsFont

新 TrueType 字体资源。

CreateFont(Stream)

创建一个新的 TrueType 字体资源。

public XpsFont CreateFont(Stream stream)

Parameters

stream Stream

包含国际刑事法院个人资料的流量作为资源。

Returns

XpsFont

新 TrueType 字体资源。

CreateGlyphs(字符串、字符串、字符串、字符串、字符串)

创造新的Glyphs。

public XpsGlyphs CreateGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

fontFamily string

字母家庭。

fontRenderingEmSize float

字体大小

fontStyle FontStyle

字体风格。

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

新格里夫。

CreateGlyphs(XpsFont, float, float, float, string)

创造新的Glyphs。

public XpsGlyphs CreateGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)

Parameters

font XpsFont

字体资源。

fontRenderingEmSize float

字体大小

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

新格里夫。

CreateGradientStop(XpsColor,浮动)

创建一个新的格拉迪安站。

public XpsGradientStop CreateGradientStop(XpsColor color, float offset)

Parameters

color XpsColor

格拉迪特停止颜色。

offset float

格拉迪特的折扣。

Returns

XpsGradientStop

新格拉迪特停车

CreateGradientStop(颜色,浮动)

创建一个新的格拉迪安站。

public XpsGradientStop CreateGradientStop(Color color, float offset)

Parameters

color Color

格拉迪特停止颜色。

offset float

格拉迪特的折扣。

Returns

XpsGradientStop

新格拉迪特停车

CreateIccProfile(线条)

从 ICC 个人资料文件中创建一个新的 ICC 个人资料资源,位于iccProfilePath。

public XpsIccProfile CreateIccProfile(string iccProfilePath)

Parameters

iccProfilePath string

走向国际刑事法院的路径作为资源。

Returns

XpsIccProfile

新 ICC 资料来源

CreateIccProfile(Stream)

创建一个新的 ICC 个人资料来源从 stream'.

public XpsIccProfile CreateIccProfile(Stream stream)

Parameters

stream Stream

包含国际刑事法院个人资料的流量作为资源。

Returns

XpsIccProfile

新 ICC 资料来源

CreateImage(线条)

从图像文件中创建一个新的图像资源,位于 imagePath'.

public XpsImage CreateImage(string imagePath)

Parameters

imagePath string

走向图像的道路作为资源。

Returns

XpsImage

新图像资源。

CreateImage(Stream)

创建一个新的图像资源从 stream'.

public XpsImage CreateImage(Stream stream)

Parameters

stream Stream

包含图像的流作为资源。

Returns

XpsImage

新图像资源。

CreateImageBrush(XpsImage、RectangleF、RectangleF)

创建一个新的图像刷。

public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)

Parameters

image XpsImage

一个图像资源。

viewbox RectangleF

刷子的源内容的位置和尺寸。

viewport RectangleF

包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块

Returns

XpsImageBrush

新图像刷子

CreateImageBrush(字符串, RectangleF, RectangleF)

创建一个新的图像刷。

public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)

Parameters

imagePath string

走向图像的路要像刷刀一样。

viewbox RectangleF

刷子的源内容的位置和尺寸。

viewport RectangleF

包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块

Returns

XpsImageBrush

新图像刷子

CreateLinearGradientBrush(列表, PointF , PointF)

创建一个新的线性格拉迪特刷子。

public XpsLinearGradientBrush CreateLinearGradientBrush(List<xpsgradientstop> gradientStops, PointF startPoint, PointF endPoint)

Parameters

gradientStops List < XpsGradientStop >

格拉迪特的名单停止了。

startPoint PointF

是线性格拉迪安的起点。

endPoint PointF

线性格拉迪安特的终点。

Returns

XpsLinearGradientBrush

新线性格拉迪特刷子

CreateLinearGradientBrush(点F、点F)

创建一个新的线性格拉迪特刷子。

public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)

Parameters

startPoint PointF

是线性格拉迪安的起点。

endPoint PointF

线性格拉迪安特的终点。

Returns

XpsLinearGradientBrush

新线性格拉迪特刷子

CreateMatrix(航海、航海、航海、航海、航海、航海)

创建一个新的精致转型矩阵。

public XpsMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

Parameters

m11 float

元素11。

m12 float

元素12

m21 float

元素21

m22 float

第22集

m31 float

元素31

m32 float

第32集

Returns

XpsMatrix

新的精致转型矩阵。

CreatePath(XpsPathGeometry)

创造一个新的道路。

public XpsPath CreatePath(XpsPathGeometry data)

Parameters

data XpsPathGeometry

路径的地质。

Returns

XpsPath

新路。

CreatePathFigure(波尔,波尔)

创建一个新的路径图。

public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)

Parameters

startPoint PointF

路径数字的第一部分的起点。

isClosed bool

指定道路是否关闭,如果设置为真实,冲击被拖动“关闭”,也就是说,路径图的最后部分的最后点与在 StartPoint 属性中指定的点,否则冲击将被“打开”,并且最后点不连接到起点,仅适用于路径数字使用在路径元素,指定一个中风。

Returns

XpsPathFigure

新路数。

CreatePathFigure(PointF, 列表, 博尔)

创建一个新的路径图。

public XpsPathFigure CreatePathFigure(PointF startPoint, List<xpspathsegment> segments, bool isClosed = false)

Parameters

startPoint PointF

路径数字的第一部分的起点。

segments List < XpsPathSegment >

路径分区列表。

isClosed bool

指定道路是否关闭,如果设置为真实,冲击被拖动“关闭”,也就是说,路径图的最后部分的最后点与在 StartPoint 属性中指定的点,否则冲击将被“打开”,并且最后点不连接到起点,仅适用于路径数字使用在路径元素,指定一个中风。

Returns

XpsPathFigure

新路数。

CreatePathGeometry(线条)

创建一个新的路径地质,以简短的形状指定。

public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)

Parameters

abbreviatedGeometry string

简短的路径地质形状。

Returns

XpsPathGeometry

新路径地质学

CreatePathGeometry()

创造一个新的路径地质学。

public XpsPathGeometry CreatePathGeometry()

Returns

XpsPathGeometry

新路径地质学

CreatePathGeometry(列表)

创建一个新的路径地质与指定的路径数字列表。

public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)

Parameters

pathFigures List < XpsPathFigure >

路径数字列表

Returns

XpsPathGeometry

新路径地质学

CreatePolyBezierSegment(点数( ), 博尔)

创建一个新的圆形Bézier曲线集。

public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF ( )

多个Bézier分区的控制点。

isStroked bool

指定是否对这条路线部分的冲击被拖动。

Returns

XpsPolyBezierSegment

新圆形Bézier曲线部分。

CreatePolyLineSegment(点数( ), 博尔)

创建一个新的多角绘图,包含一个自愿的数量的个别垂直。

public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF ( )

定义多线部分的多部分的坐标集。

isStroked bool

指定是否对这条路线部分的冲击被拖动。

Returns

XpsPolyLineSegment

新的多角绘画部分。

CreatePolyQuadraticBezierSegment(点数( ), 博尔)

创建一个新的组合的四角形Bézier曲线从前一个点在路径图通过一个组使用指定的控制点。

public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)

Parameters

points PointF ( )

控制点为多个四方Bézier分区。

isStroked bool

指定是否对这条路线部分的冲击被拖动。

Returns

XpsPolyQuadraticBezierSegment

新四角形Bézier曲线部分。

CreateRadialGradientBrush(列表, PointF , PointF , 浮动 , 浮动)

创建一个新的放射性格拉迪特刷子。

public XpsRadialGradientBrush CreateRadialGradientBrush(List<xpsgradientstop> gradientStops, PointF center, PointF gradientOrigin, float radiusX, float radiusY)

Parameters

gradientStops List < XpsGradientStop >

格拉迪特的名单停止了。

center PointF

放射性格拉迪安特的中心点(即精子的中心点)。

gradientOrigin PointF

放射性格拉迪安的起源点。

radiusX float

射线在 x 尺寸的精子,定义的射线格拉迪安特。

radiusY float

射线在<i尺寸的精子定义的射线格拉迪安特。

Returns

XpsRadialGradientBrush

新放射性格拉迪特刷子

CreateRadialGradientBrush(点F、点F、浮动、浮动)

创建一个新的放射性格拉迪特刷子。

public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, float radiusX, float radiusY)

Parameters

center PointF

放射性格拉迪安特的中心点(即精子的中心点)。

gradientOrigin PointF

放射性格拉迪安的起源点。

radiusX float

射线在 x 尺寸的精子,定义的射线格拉迪安特。

radiusY float

射线在<i尺寸的精子定义的射线格拉迪安特。

Returns

XpsRadialGradientBrush

新放射性格拉迪特刷子

CreateSolidColorBrush(XpsColor)

创建一个坚固的颜色刷子。

public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)

Parameters

color XpsColor

填满的元素的颜色。

Returns

XpsSolidColorBrush

新的固体颜色刷子

CreateSolidColorBrush(Color)

创建一个坚固的颜色刷子。

public XpsSolidColorBrush CreateSolidColorBrush(Color color)

Parameters

color Color

填满的元素的颜色。

Returns

XpsSolidColorBrush

新的固体颜色刷子

CreateVisualBrush(XpsContentElement、RectangleF、RectangleF)

创建一个新的视觉刷子。

public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)

Parameters

element XpsContentElement

XPS 元素(Canvas、Path 或 Glyphs)用于视觉属性或视觉刷。

viewbox RectangleF

刷子的源内容的位置和尺寸。

viewport RectangleF

包含首批刷子协调空间的区域用于(可能重复)填充刷子所应用的区域的板块

Returns

XpsVisualBrush

新视觉刷子

Dispose()

命令有。

public void Dispose()

GetDocumentPrintTicket(因特)

返回以 documentIndex 索引的文档的印刷票。

public DocumentPrintTicket GetDocumentPrintTicket(int documentIndex)

Parameters

documentIndex int

印刷票要返回的文件的指数。

Returns

DocumentPrintTicket

文档印刷门票。

GetPagePrintTicket(int , int , int)

返回以 pageIndex 索引的页面印刷票,以 documentIndex 索引的文档。

public PagePrintTicket GetPagePrintTicket(int documentIndex, int pageIndex)

Parameters

documentIndex int

文件的指数。

pageIndex int

印刷门票返回的页面指数。

Returns

PagePrintTicket

页面印刷门票

插入T>(T、T、T)

index 位置的活跃页面中插入一个元素(Canvas, Path, 或 Glyphs)。

public T Insert<t>(int index, T element) where T : XpsContentElement

Parameters

index int

应该输入一个 element’ 的位置。

element T

要插入的元素。

Returns

T

插入元素。

类型参数

T

元素的类型。

InsertCanvas(因特)

index 位置的活跃页面中插入一个新的字符串。

public XpsCanvas InsertCanvas(int index)

Parameters

index int

位置,应该插入一个新的管道。

Returns

XpsCanvas

插入的管道。

InsertDocument(布尔,博尔)

输入一个空白的文档,默认页面大小 index’ 位置。

public void InsertDocument(int index, bool activate = true)

Parameters

index int

该地点应该输入文件。

activate bool

标志表明是否选择输入的文件作为活跃。

InsertDocument(, float, float, bool)

index’ 位置上输入一个空白的文档,其中第一页的尺寸width’ 和 height’。

public void InsertDocument(int index, float width, float height, bool activate = true)

Parameters

index int

该地点应该输入文件。

width float

第一页的宽度。

height float

第一页的高度。

activate bool

标志表明是否选择输入的文件作为活跃。

InsertGlyphs(int, string, float, FontStyle, float, float, string)

index 位置的活跃页面中插入新格利夫。

public XpsGlyphs InsertGlyphs(int index, string fontFamily, float fontSize, FontStyle fontStyle, float originX, float originY, string unicodeString)

Parameters

index int

在哪个位置要插入新格利夫。

fontFamily string

字母家庭。

fontSize float

字体大小

fontStyle FontStyle

字体风格。

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

插入Glyphs。

InsertGlyphs(int, XpsFont, float, float, float, string)

index 位置的活跃页面中插入新格利夫。

public XpsGlyphs InsertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, string unicodeString)

Parameters

index int

在哪个位置要插入新格利夫。

font XpsFont

字体资源。

fontSize float

字体大小

originX float

Glyphs 起源 X 坐标。

originY float

Glyphs 起源 Y 协调。

unicodeString string

打印的线条。

Returns

XpsGlyphs

插入Glyphs。

InsertPage(布尔,博尔)

在文档中输入一个空白的页面,默认页面大小为 index’ 位置。

public XpsPage InsertPage(int index, bool activate = true)

Parameters

index int

一个页面应该插入的位置。

activate bool

标志表明是否选择输入的页面作为活跃。

Returns

XpsPage

插入页面。

InsertPage(, float, float, bool)

在文件中输入一个空白的页面,指定width’ 和 height’ 在 index’ 位置。

public XpsPage InsertPage(int index, float width, float height, bool activate = true)

Parameters

index int

一个页面应该插入的位置。

width float

一个新的页面。

height float

新页面的高度。

activate bool

标志表明是否选择输入的页面作为活跃。

Returns

XpsPage

插入页面。

InsertPage(int、XpsPage、bool)

index 位置插入文档中的页面。

public XpsPage InsertPage(int index, XpsPage page, bool activate = true)

Parameters

index int

应该添加一页的位置。

page XpsPage

要插入的页面

activate bool

标志表明是否选择输入的页面作为活跃。

Returns

XpsPage

插入页面。

InsertPath(int,XpsPath地质学)

index 位置输入新路径到活跃页面。

public XpsPath InsertPath(int index, XpsPathGeometry data)

Parameters

index int

一个新的路径应该被插入的位置。

data XpsPathGeometry

路径的地质。

Returns

XpsPath

插入的路径

Merge(线条( ), String)

将多个 XPS 文件连接到一个 XPS 文件。

public void Merge(string[] filesForMerge, string outXpsFilePath)

Parameters

filesForMerge string ( )

XPS 文件与此文件合并。

outXpsFilePath string

输出 xps 文件路径。

Merge(线条( ), 流)

将多个 XPS 文件连接到一个 XPS 文件。

public void Merge(string[] filesForMerge, Stream outStream)

Parameters

filesForMerge string ( )

XPS 文件与此文件合并。

outStream Stream

输出流在哪里保存合并的XPS文件。

MergeToPdf(线条( ), 字符串, PdfSaveOptions)

将 XPS 文件插入 PDF 使用 Aspose.Page.Device 示例。

public void MergeToPdf(string[] filesForMerge, string outPdfFilePath, PdfSaveOptions options)

Parameters

filesForMerge string ( )

XPS 文件与此文件合并到输出设备。

outPdfFilePath string

一个输出PDF文件路径。

options PdfSaveOptions

文档储蓄选项

MergeToPdf(线条( ), 流, PdfSaveOptions)

将 XPS 文件插入 PDF 使用 Aspose.Page.Device 示例。

public void MergeToPdf(string[] filesForMerge, Stream pdfStream, PdfSaveOptions options)

Parameters

filesForMerge string ( )

XPS 文件与此文件合并到输出设备。

pdfStream Stream

输出PDF流。

options PdfSaveOptions

文档储蓄选项

移除(T)

从活跃页面中删除一个元素。

public T Remove<t>(T element) where T : XpsContentElement

Parameters

element T

要移除的元素。

Returns

T

删除元素。

类型参数

T

元素的类型。

RemoveAt(因特)

从活跃页面中删除 index 位置的元素。

public XpsContentElement RemoveAt(int index)

Parameters

index int

哪个元素应该被移除。

Returns

XpsContentElement

删除元素。

RemoveDocumentAt(因特)

将文件移除在 index 位置。

public void RemoveDocumentAt(int index)

Parameters

index int

一个文件应该被删除的位置。

RemovePage(XpsPage)

从文件中删除一页。

public XpsPage RemovePage(XpsPage page)

Parameters

page XpsPage

要删除的页面

Returns

XpsPage

删除页面

RemovePageAt(因特)

index 位置从文档中删除页面。

public XpsPage RemovePageAt(int index)

Parameters

index int

一个页面应该被删除的地方。

Returns

XpsPage

删除页面

Save(线条)

将 XPS 文件存储到位于 path 中的 XPS 文件。

public void Save(string path)

Parameters

path string

文件的位置。

Save(Stream)

将 XPS 文件存储到流。

public void Save(Stream stream)

Parameters

stream Stream

流 XPS 文件存储。

SaveAsImage(ImageSaveOptions)

将文件存储在 bitmap 图像格式中。

public byte[][][] SaveAsImage(ImageSaveOptions options)

Parameters

options ImageSaveOptions

存储文档的选项在比特图像格式。

Returns

byte [][][]

结果的图像是字符串。 第一维为内部文档第二个是内部文件中的页面。

SaveAsPdf(字符串, PdfSaveOptions)

将文件存储在 PDF 格式。

public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)

Parameters

outPdfFilePath string

一个输出PDF文件路径。

options PdfSaveOptions

存储文档的选项在PDF格式。

SaveAsPdf(流,PdfSaveOptions)

将文件存储在 PDF 格式。

public void SaveAsPdf(Stream stream, PdfSaveOptions options)

Parameters

stream Stream

流写出输出PDF文件到。

options PdfSaveOptions

存储文档的选项在PDF格式。

SaveAsPs(字符串, PsSaveOptions)

将文件存储在PS格式。

public void SaveAsPs(string outPsFilePath, PsSaveOptions options)

Parameters

outPsFilePath string

一个输出PS文件路径。

options PsSaveOptions

存储文件的选项在PS格式。

SaveAsPs(流量, PsSaveOptions)

将文件存储在PS格式。

public void SaveAsPs(Stream stream, PsSaveOptions options)

Parameters

stream Stream

流写出输出PS文件到。

options PsSaveOptions

存储文件的选项在PS格式。

SelectActiveDocument(因特)

选择一个活跃的文件编辑。

public void SelectActiveDocument(int documentNumber)

Parameters

documentNumber int

文件编号。

Exceptions

ArgumentException

documentNumber’ 出于界限时。

SelectActivePage(因特)

选择一个活跃的文档页面编辑。

public XpsPage SelectActivePage(int pageNumber)

Parameters

pageNumber int

一页号码。

Returns

XpsPage

Aspose.Page.XPS.XpsModel.XpsPage 示例为活跃页面。

Exceptions

ArgumentException

通过当pageNumber’ 不限时。

SetDocumentPrintTicket(文档 文档 文档)

printTicket’ 链接到由 documentIndex 索引的文档。

public void SetDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)

Parameters

documentIndex int

文件的索引将印刷票链接到。

printTicket DocumentPrintTicket

印刷门票到链接。

SetPagePrintTicket(int, int, PagePrintTicket)

printTicket’ 链接到 pageIndex’ 以 documentIndex 索引的页面。

public void SetPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)

Parameters

documentIndex int

文件的指数。

pageIndex int

页面指数将印刷门票链接到。

printTicket PagePrintTicket

印刷门票到链接。

 中文