Class XpsDocument
Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.1.2)
XPS 문서의 주요 엔터티를 캡슐화하는 클래스이며, 모든 XPS 요소에 대한 조작 메서드를 제공합니다.
public sealed class XpsDocument : Document, IDisposable
상속
object ← Document ← XpsDocument
구현
상속된 멤버
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
생성자
XpsDocument()
기본 페이지 크기로 빈 XPS 문서를 생성합니다.
public XpsDocument()
XpsDocument(string)
path
에 위치한 기존 XPS 문서를 엽니다.
public XpsDocument(string path)
매개변수
path
string
문서의 위치.
XpsDocument(string, LoadOptions)
path
에 위치한 기존 문서를 XPS 문서로 엽니다.
public XpsDocument(string path, LoadOptions options)
매개변수
path
string
문서의 위치.
options
LoadOptions
문서 로딩 옵션.
XpsDocument(Stream, LoadOptions)
stream
에 저장된 기존 문서를 XPS 문서로 로드합니다.
public XpsDocument(Stream stream, LoadOptions options)
매개변수
stream
Stream
문서 스트림.
options
LoadOptions
문서 로딩 옵션.
속성
ActiveDocument
활성 문서 번호를 가져옵니다.
public int ActiveDocument { get; }
속성 값
ActivePage
활성 문서 내의 활성 페이지 번호를 가져옵니다.
public int ActivePage { get; }
속성 값
DocumentCount
XPS 패키지 내의 문서 수를 반환합니다.
public int DocumentCount { get; }
속성 값
JobPrintTicket
문서의 작업 인쇄 티켓을 반환/설정합니다.
public JobPrintTicket JobPrintTicket { get; set; }
속성 값
Page
활성 페이지에 대한 Aspose.Page.XPS.XpsModel.XpsPage 인스턴스를 반환합니다.
public XpsPage Page { get; }
속성 값
PageCount
활성 문서 내의 페이지 수를 반환합니다.
public int PageCount { get; }
속성 값
TotalPageCount
XPS 문서 내 모든 문서의 총 페이지 수를 반환합니다.
public int TotalPageCount { get; }
속성 값
Utils
정식 XPS 조작 API를 넘어서는 유틸리티를 제공하는 객체를 가져옵니다.
public DocumentUtils Utils { get; }
속성 값
메서드
Add<t>(T)
콘텐츠 요소(Canvas, Path 또는 Glyphs)를 추가합니다.
public T Add<t>(T element) where T : XpsContentElement
매개변수
element
T
추가할 요소.
반환
T
추가된 요소.
형식 매개변수
T
요소의 형식.
AddCanvas()
활성 페이지에 새 캔버스를 추가합니다.
public XpsCanvas AddCanvas()
반환
추가된 캔버스.
AddDocument(bool)
기본 페이지 크기로 빈 문서를 추가합니다.
public void AddDocument(bool activate = true)
매개변수
activate
bool
추가된 문서를 활성으로 선택할지 여부를 나타내는 플래그입니다.
AddDocument(float, float, bool)
첫 페이지의 크기 width
와 height
로 빈 문서를 추가합니다.
public void AddDocument(float width, float height, bool activate = true)
매개변수
width
float
첫 페이지의 너비.
height
float
첫 페이지의 높이.
activate
bool
추가된 문서를 활성으로 선택할지 여부를 나타내는 플래그입니다.
AddGlyphs(string, float, FontStyle, float, float, string)
활성 페이지에 새 글리프를 추가합니다.
public XpsGlyphs AddGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
매개변수
fontFamily
string
폰트 패밀리.
fontRenderingEmSize
float
폰트 크기.
fontStyle
FontStyle
폰트 스타일.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
추가된 글리프.
AddGlyphs(XpsFont, float, float, float, string)
활성 페이지에 새 글리프를 추가합니다.
public XpsGlyphs AddGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
매개변수
font
XpsFont
폰트 리소스.
fontRenderingEmSize
float
폰트 크기.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
추가된 글리프.
AddOutlineEntry(string, int, XpsHyperlinkTarget)
문서에 개요 항목을 추가합니다.
public void AddOutlineEntry(string description, int outlineLevel, XpsHyperlinkTarget target)
매개변수
description
string
항목 설명.
outlineLevel
int
개요 수준.
target
XpsHyperlinkTarget
항목 대상.
AddPage(bool)
기본 페이지 크기로 빈 페이지를 문서에 추가합니다.
public XpsPage AddPage(bool activate = true)
매개변수
activate
bool
추가된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
추가된 페이지.
AddPage(float, float, bool)
지정된 width
와 height
로 문서에 빈 페이지를 추가합니다.
public XpsPage AddPage(float width, float height, bool activate = true)
매개변수
width
float
새 페이지의 너비.
height
float
새 페이지의 높이.
activate
bool
추가된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
추가된 페이지.
AddPage(XpsPage, bool)
문서에 페이지를 추가합니다.
public XpsPage AddPage(XpsPage page, bool activate = true)
매개변수
page
XpsPage
추가할 페이지.
activate
bool
추가된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
추가된 페이지.
AddPath(XpsPathGeometry)
활성 페이지에 새 경로를 추가합니다.
public XpsPath AddPath(XpsPathGeometry data)
매개변수
data
XpsPathGeometry
경로의 기하학적 데이터.
반환
추가된 경로.
CreateArcSegment(PointF, SizeF, float, bool, XpsSweepDirection, bool)
새로운 타원형 호 세그먼트를 생성합니다.
public XpsArcSegment CreateArcSegment(PointF point, SizeF size, float rotationAngle, bool isLargeArc, XpsSweepDirection sweepDirection, bool isStroked = true)
매개변수
point
PointF
타원형 호의 끝점.
size
SizeF
타원형 호의 x 및 y 반지름을 x,y 쌍으로 나타냅니다.
rotationAngle
float
타원이 현재 좌표계에 대해 어떻게 회전하는지를 나타냅니다.
isLargeArc
bool
호가 180도 이상의 스윕으로 그려지는지 여부를 결정합니다.
sweepDirection
XpsSweepDirection
호가 그려지는 방향.
isStroked
bool
이 경로 세그먼트의 스트로크가 그려지는지 여부를 지정합니다.
반환
새로운 타원형 호 세그먼트.
CreateCanvas()
새로운 캔버스를 생성합니다.
public XpsCanvas CreateCanvas()
반환
새로운 캔버스.
CreateColor(Color)
새로운 색상을 생성합니다.
public XpsColor CreateColor(Color color)
매개변수
color
Color
RGB 색상을 위한 기본 색상 인스턴스.
반환
새로운 색상.
CreateColor(int, int, int, int)
sRGB 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(int a, int r, int g, int b)
매개변수
a
int
알파 색상 구성 요소.
r
int
빨간색 색상 구성 요소.
g
int
녹색 색상 구성 요소.
b
int
파란색 색상 구성 요소.
반환
새로운 색상.
CreateColor(int, int, int)
sRGB 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(int r, int g, int b)
매개변수
r
int
빨간색 색상 구성 요소.
g
int
녹색 색상 구성 요소.
b
int
파란색 색상 구성 요소.
반환
새로운 색상.
CreateColor(float, float, float, float)
scRGB 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(float a, float r, float g, float b)
매개변수
a
float
알파 색상 구성 요소.
r
float
빨간색 색상 구성 요소.
g
float
녹색 색상 구성 요소.
b
float
파란색 색상 구성 요소.
반환
새로운 색상.
CreateColor(float, float, float)
scRGB 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(float r, float g, float b)
매개변수
r
float
빨간색 색상 구성 요소.
g
float
녹색 색상 구성 요소.
b
float
파란색 색상 구성 요소.
반환
새로운 색상.
CreateColor(string, params float[])
ICC 기반 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(string path, params float[] components)
매개변수
path
string
ICC 프로필의 경로.
components
float[]
색상 구성 요소.
반환
새로운 색상.
CreateColor(XpsIccProfile, params float[])
ICC 기반 색상 공간에서 새로운 색상을 생성합니다.
public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
매개변수
iccProfile
XpsIccProfile
ICC 프로필 리소스.
components
float[]
색상 구성 요소.
반환
새로운 색상.
CreateFont(string, FontStyle)
새로운 TrueType 폰트 리소스를 생성합니다.
public XpsFont CreateFont(string fontFamily, FontStyle fontStyle)
매개변수
fontFamily
string
폰트 패밀리.
fontStyle
FontStyle
폰트 스타일.
반환
새로운 TrueType 폰트 리소스.
CreateFont(Stream)
스트림에서 새로운 TrueType 폰트 리소스를 생성합니다.
public XpsFont CreateFont(Stream stream)
매개변수
stream
Stream
리소스로 사용할 ICC 프로필을 포함하는 스트림.
반환
새로운 TrueType 폰트 리소스.
CreateGlyphs(string, float, FontStyle, float, float, string)
새로운 글리프를 생성합니다.
public XpsGlyphs CreateGlyphs(string fontFamily, float fontRenderingEmSize, FontStyle fontStyle, float originX, float originY, string unicodeString)
매개변수
fontFamily
string
폰트 패밀리.
fontRenderingEmSize
float
폰트 크기.
fontStyle
FontStyle
폰트 스타일.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
새로운 글리프.
CreateGlyphs(XpsFont, float, float, float, string)
새로운 글리프를 생성합니다.
public XpsGlyphs CreateGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, string unicodeString)
매개변수
font
XpsFont
폰트 리소스.
fontRenderingEmSize
float
폰트 크기.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
새로운 글리프.
CreateGradientStop(XpsColor, float)
새로운 그라디언트 정지를 생성합니다.
public XpsGradientStop CreateGradientStop(XpsColor color, float offset)
매개변수
color
XpsColor
그라디언트 정지 색상.
offset
float
그라디언트 오프셋.
반환
새로운 그라디언트 정지.
CreateGradientStop(Color, float)
새로운 그라디언트 정지를 생성합니다.
public XpsGradientStop CreateGradientStop(Color color, float offset)
매개변수
color
Color
그라디언트 정지 색상.
offset
float
그라디언트 오프셋.
반환
새로운 그라디언트 정지.
CreateIccProfile(string)
iccProfilePath
에 위치한 ICC 프로필 파일에서 새로운 ICC 프로필 리소스를 생성합니다.
public XpsIccProfile CreateIccProfile(string iccProfilePath)
매개변수
iccProfilePath
string
리소스로 사용할 ICC 프로필의 경로.
반환
새로운 ICC 프로필 리소스.
CreateIccProfile(Stream)
stream
에서 새로운 ICC 프로필 리소스를 생성합니다.
public XpsIccProfile CreateIccProfile(Stream stream)
매개변수
stream
Stream
리소스로 사용할 ICC 프로필을 포함하는 스트림.
반환
새로운 ICC 프로필 리소스.
CreateImage(string)
imagePath
에 위치한 이미지 파일에서 새로운 이미지 리소스를 생성합니다.
public XpsImage CreateImage(string imagePath)
매개변수
imagePath
string
리소스로 사용할 이미지의 경로.
반환
새로운 이미지 리소스.
CreateImage(Stream)
stream
에서 새로운 이미지 리소스를 생성합니다.
public XpsImage CreateImage(Stream stream)
매개변수
stream
Stream
리소스로 사용할 이미지를 포함하는 스트림.
반환
새로운 이미지 리소스.
CreateImageBrush(XpsImage, RectangleF, RectangleF)
새로운 이미지 브러시를 생성합니다.
public XpsImageBrush CreateImageBrush(XpsImage image, RectangleF viewbox, RectangleF viewport)
매개변수
image
XpsImage
이미지 리소스.
viewbox
RectangleF
브러시의 소스 콘텐츠의 위치와 크기.
viewport
RectangleF
브러시가 적용되는 영역을 채우기 위해 반복적으로 적용되는 주요 브러시 타일의 포함 좌표 공간 내의 영역.
반환
새로운 이미지 브러시.
CreateImageBrush(string, RectangleF, RectangleF)
새로운 이미지 브러시를 생성합니다.
public XpsImageBrush CreateImageBrush(string imagePath, RectangleF viewbox, RectangleF viewport)
매개변수
imagePath
string
브러시 타일로 사용할 이미지의 경로.
viewbox
RectangleF
브러시의 소스 콘텐츠의 위치와 크기.
viewport
RectangleF
브러시가 적용되는 영역을 채우기 위해 반복적으로 적용되는 주요 브러시 타일의 포함 좌표 공간 내의 영역.
반환
새로운 이미지 브러시.
CreateLinearGradientBrush(List<xpsgradientstop>, PointF, PointF)
새로운 선형 그라디언트 브러시를 생성합니다.
public XpsLinearGradientBrush CreateLinearGradientBrush(List<xpsgradientstop> gradientStops, PointF startPoint, PointF endPoint)
매개변수
gradientStops
List<XpsGradientStop>
그라디언트 정지 목록.
startPoint
PointF
선형 그라디언트의 시작점.
endPoint
PointF
선형 그라디언트의 끝점.
반환
새로운 선형 그라디언트 브러시.
CreateLinearGradientBrush(PointF, PointF)
새로운 선형 그라디언트 브러시를 생성합니다.
public XpsLinearGradientBrush CreateLinearGradientBrush(PointF startPoint, PointF endPoint)
매개변수
startPoint
PointF
선형 그라디언트의 시작점.
endPoint
PointF
선형 그라디언트의 끝점.
반환
새로운 선형 그라디언트 브러시.
CreateMatrix(float, float, float, float, float, float)
새로운 아핀 변환 행렬을 생성합니다.
public XpsMatrix CreateMatrix(float m11, float m12, float m21, float m22, float m31, float m32)
매개변수
m11
float
요소 11.
m12
float
요소 12.
m21
float
요소 21.
m22
float
요소 22.
m31
float
요소 31.
m32
float
요소 32.
반환
새로운 아핀 변환 행렬.
CreatePath(XpsPathGeometry)
새로운 경로를 생성합니다.
public XpsPath CreatePath(XpsPathGeometry data)
매개변수
data
XpsPathGeometry
경로의 기하학적 데이터.
반환
새로운 경로.
CreatePathFigure(PointF, bool)
새로운 경로 도형을 생성합니다.
public XpsPathFigure CreatePathFigure(PointF startPoint, bool isClosed = false)
매개변수
startPoint
PointF
경로 도형의 첫 번째 세그먼트의 시작점.
isClosed
bool
경로가 닫혀 있는지 여부를 지정합니다. true로 설정하면 스트로크가 “닫힌” 상태로 그려지며, 즉 경로 도형의 마지막 세그먼트의 마지막 점이 StartPoint 속성에 지정된 점과 연결됩니다. 그렇지 않으면 스트로크가 “열린” 상태로 그려지며 마지막 점이 시작점과 연결되지 않습니다. 경로 도형이 스트로크를 지정하는 경로 요소에서 사용될 경우에만 적용됩니다.
반환
새로운 경로 도형.
CreatePathFigure(PointF, List, bool)
새로운 경로 도형을 생성합니다.
public XpsPathFigure CreatePathFigure(PointF startPoint, List<xpspathsegment> segments, bool isClosed = false)
매개변수
startPoint
PointF
경로 도형의 첫 번째 세그먼트의 시작점.
segments
List<XpsPathSegment>
경로 세그먼트 목록.
isClosed
bool
경로가 닫혀 있는지 여부를 지정합니다. true로 설정하면 스트로크가 “닫힌” 상태로 그려지며, 즉 경로 도형의 마지막 세그먼트의 마지막 점이 StartPoint 속성에 지정된 점과 연결됩니다. 그렇지 않으면 스트로크가 “열린” 상태로 그려지며 마지막 점이 시작점과 연결되지 않습니다. 경로 도형이 스트로크를 지정하는 경로 요소에서 사용될 경우에만 적용됩니다.
반환
새로운 경로 도형.
CreatePathGeometry(string)
약식 형태로 지정된 새로운 경로 기하학을 생성합니다.
public XpsPathGeometry CreatePathGeometry(string abbreviatedGeometry)
매개변수
abbreviatedGeometry
string
약식 형태의 경로 기하학.
반환
새로운 경로 기하학.
CreatePathGeometry()
새로운 경로 기하학을 생성합니다.
public XpsPathGeometry CreatePathGeometry()
반환
새로운 경로 기하학.
CreatePathGeometry(List<xpspathfigure>)
지정된 경로 도형 목록으로 새로운 경로 기하학을 생성합니다.
public XpsPathGeometry CreatePathGeometry(List<xpspathfigure> pathFigures)
매개변수
pathFigures
List<XpsPathFigure>
경로 도형 목록.
반환
새로운 경로 기하학.
CreatePolyBezierSegment(PointF[], bool)
새로운 세트의 큐빅 베지어 곡선을 생성합니다.
public XpsPolyBezierSegment CreatePolyBezierSegment(PointF[] points, bool isStroked = true)
매개변수
points
PointF[]
여러 베지어 세그먼트를 위한 제어 점.
isStroked
bool
이 경로 세그먼트의 스트로크가 그려지는지 여부를 지정합니다.
반환
새로운 큐빅 베지어 곡선 세그먼트.
CreatePolyLineSegment(PointF[], bool)
임의의 개수의 개별 정점을 포함하는 새로운 다각형 드로잉을 생성합니다.
public XpsPolyLineSegment CreatePolyLineSegment(PointF[] points, bool isStroked = true)
매개변수
points
PointF[]
다중 세그먼트를 정의하는 좌표 세트.
isStroked
bool
이 경로 세그먼트의 스트로크가 그려지는지 여부를 지정합니다.
반환
새로운 다각형 드로잉 세그먼트.
CreatePolyQuadraticBezierSegment(PointF[], bool)
이전 경로 도형의 점을 통해 제어 점을 사용하여 새로운 세트의 2차 베지어 곡선을 생성합니다.
public XpsPolyQuadraticBezierSegment CreatePolyQuadraticBezierSegment(PointF[] points, bool isStroked = true)
매개변수
points
PointF[]
여러 2차 베지어 세그먼트를 위한 제어 점.
isStroked
bool
이 경로 세그먼트의 스트로크가 그려지는지 여부를 지정합니다.
반환
새로운 2차 베지어 곡선 세그먼트.
CreateRadialGradientBrush(List<xpsgradientstop>, PointF, PointF, float, float)
새로운 방사형 그라디언트 브러시를 생성합니다.
public XpsRadialGradientBrush CreateRadialGradientBrush(List<xpsgradientstop> gradientStops, PointF center, PointF gradientOrigin, float radiusX, float radiusY)
매개변수
gradientStops
List<XpsGradientStop>
그라디언트 정지 목록.
center
PointF
방사형 그라디언트의 중심점(즉, 타원의 중심).
gradientOrigin
PointF
방사형 그라디언트의 원점.
radiusX
float
방사형 그라디언트를 정의하는 타원의 x 차원의 반지름.
radiusY
float
방사형 그라디언트를 정의하는 타원의 y 차원의 반지름.
반환
새로운 방사형 그라디언트 브러시.
CreateRadialGradientBrush(PointF, PointF, float, float)
새로운 방사형 그라디언트 브러시를 생성합니다.
public XpsRadialGradientBrush CreateRadialGradientBrush(PointF center, PointF gradientOrigin, float radiusX, float radiusY)
매개변수
center
PointF
방사형 그라디언트의 중심점(즉, 타원의 중심).
gradientOrigin
PointF
방사형 그라디언트의 원점.
radiusX
float
방사형 그라디언트를 정의하는 타원의 x 차원의 반지름.
radiusY
float
방사형 그라디언트를 정의하는 타원의 y 차원의 반지름.
반환
새로운 방사형 그라디언트 브러시.
CreateSolidColorBrush(XpsColor)
새로운 단색 브러시를 생성합니다.
public XpsSolidColorBrush CreateSolidColorBrush(XpsColor color)
매개변수
color
XpsColor
채워진 요소의 색상.
반환
새로운 단색 브러시.
CreateSolidColorBrush(Color)
새로운 단색 브러시를 생성합니다.
public XpsSolidColorBrush CreateSolidColorBrush(Color color)
매개변수
color
Color
채워진 요소의 색상.
반환
새로운 단색 브러시.
CreateVisualBrush(XpsContentElement, RectangleF, RectangleF)
새로운 비주얼 브러시를 생성합니다.
public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, RectangleF viewport)
매개변수
element
XpsContentElement
비주얼 브러시의 비주얼 속성을 위한 XPS 요소(Canvas, Path 또는 Glyphs).
viewbox
RectangleF
브러시의 소스 콘텐츠의 위치와 크기.
viewport
RectangleF
브러시가 적용되는 영역을 채우기 위해 반복적으로 적용되는 주요 브러시 타일의 포함 좌표 공간 내의 영역.
반환
새로운 비주얼 브러시.
Dispose()
인스턴스를 폐기합니다.
public void Dispose()
GetDocumentPrintTicket(int)
documentIndex
로 인덱싱된 문서의 인쇄 티켓을 반환합니다.
public DocumentPrintTicket GetDocumentPrintTicket(int documentIndex)
매개변수
documentIndex
int
인쇄 티켓을 반환할 문서의 인덱스.
반환
문서의 인쇄 티켓.
GetPagePrintTicket(int, int)
documentIndex
로 인덱싱된 문서 내의 pageIndex
로 인덱싱된 페이지의 인쇄 티켓을 반환합니다.
public PagePrintTicket GetPagePrintTicket(int documentIndex, int pageIndex)
매개변수
documentIndex
int
문서의 인덱스.
pageIndex
int
인쇄 티켓을 반환할 페이지의 인덱스.
반환
페이지의 인쇄 티켓.
Insert<t>(int, T)
활성 페이지의 index
위치에 요소(Canvas, Path 또는 Glyphs)를 삽입합니다.
public T Insert<t>(int index, T element) where T : XpsContentElement
매개변수
index
int
element
이 삽입될 위치.
element
T
삽입할 요소.
반환
T
삽입된 요소.
형식 매개변수
T
요소의 형식.
InsertCanvas(int)
활성 페이지의 index
위치에 새 캔버스를 삽입합니다.
public XpsCanvas InsertCanvas(int index)
매개변수
index
int
새 캔버스가 삽입될 위치.
반환
삽입된 캔버스.
InsertDocument(int, bool)
기본 페이지 크기로 빈 문서를 index
위치에 삽입합니다.
public void InsertDocument(int index, bool activate = true)
매개변수
index
int
문서가 삽입될 위치.
activate
bool
삽입된 문서를 활성으로 선택할지 여부를 나타내는 플래그입니다.
InsertDocument(int, float, float, bool)
첫 페이지의 크기 width
와 height
로 빈 문서를 index
위치에 삽입합니다.
public void InsertDocument(int index, float width, float height, bool activate = true)
매개변수
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)
매개변수
index
int
새 글리프가 삽입될 위치.
fontFamily
string
폰트 패밀리.
fontSize
float
폰트 크기.
fontStyle
FontStyle
폰트 스타일.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
삽입된 글리프.
InsertGlyphs(int, XpsFont, float, float, float, string)
활성 페이지의 index
위치에 새 글리프를 삽입합니다.
public XpsGlyphs InsertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, string unicodeString)
매개변수
index
int
새 글리프가 삽입될 위치.
font
XpsFont
폰트 리소스.
fontSize
float
폰트 크기.
originX
float
글리프의 원점 X 좌표.
originY
float
글리프의 원점 Y 좌표.
unicodeString
string
인쇄할 문자열.
반환
삽입된 글리프.
InsertPage(int, bool)
기본 페이지 크기로 빈 페이지를 index
위치에 삽입합니다.
public XpsPage InsertPage(int index, bool activate = true)
매개변수
index
int
페이지가 삽입될 위치.
activate
bool
삽입된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
삽입된 페이지.
InsertPage(int, float, float, bool)
지정된 width
와 height
로 빈 페이지를 index
위치에 삽입합니다.
public XpsPage InsertPage(int index, float width, float height, bool activate = true)
매개변수
index
int
페이지가 삽입될 위치.
width
float
새 페이지의 너비.
height
float
새 페이지의 높이.
activate
bool
삽입된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
삽입된 페이지.
InsertPage(int, XpsPage, bool)
문서를 index
위치에 페이지를 삽입합니다.
public XpsPage InsertPage(int index, XpsPage page, bool activate = true)
매개변수
index
int
페이지가 추가될 위치.
page
XpsPage
삽입할 페이지.
activate
bool
삽입된 페이지를 활성으로 선택할지 여부를 나타내는 플래그입니다.
반환
삽입된 페이지.
InsertPath(int, XpsPathGeometry)
활성 페이지의 index
위치에 새 경로를 삽입합니다.
public XpsPath InsertPath(int index, XpsPathGeometry data)
매개변수
index
int
새 경로가 삽입될 위치.
data
XpsPathGeometry
경로의 기하학적 데이터.
반환
삽입된 경로.
Merge(string[], string)
여러 XPS 파일을 하나의 XPS 문서로 병합합니다.
public void Merge(string[] filesForMerge, string outXpsFilePath)
매개변수
filesForMerge
string[]
이 문서와 병합할 XPS 파일들.
outXpsFilePath
string
출력 Xps 파일 경로.
Merge(string[], Stream)
여러 XPS 파일을 하나의 XPS 문서로 병합합니다.
public void Merge(string[] filesForMerge, Stream outStream)
매개변수
filesForMerge
string[]
이 문서와 병합할 XPS 파일들.
outStream
Stream
병합된 XPS 문서를 저장할 출력 스트림.
MergeToPdf(string[], string, PdfSaveOptions)
Aspose.Page.Device 인스턴스를 사용하여 XPS 문서를 PDF로 병합합니다.
public void MergeToPdf(string[] filesForMerge, string outPdfFilePath, PdfSaveOptions options)
매개변수
filesForMerge
string[]
출력 장치로 병합할 XPS 파일들.
outPdfFilePath
string
출력 PDF 파일 경로.
options
PdfSaveOptions
문서 저장 옵션.
MergeToPdf(string[], Stream, PdfSaveOptions)
Aspose.Page.Device 인스턴스를 사용하여 XPS 문서를 PDF로 병합합니다.
public void MergeToPdf(string[] filesForMerge, Stream pdfStream, PdfSaveOptions options)
매개변수
filesForMerge
string[]
출력 장치로 병합할 XPS 파일들.
pdfStream
Stream
출력 PDF 스트림.
options
PdfSaveOptions
문서 저장 옵션.
Remove<t>(T)
활성 페이지에서 요소를 제거합니다.
public T Remove<t>(T element) where T : XpsContentElement
매개변수
element
T
제거할 요소.
반환
T
제거된 요소.
형식 매개변수
T
요소의 형식.
RemoveAt(int)
활성 페이지에서 index
위치의 요소를 제거합니다.
public XpsContentElement RemoveAt(int index)
매개변수
index
int
제거할 요소의 위치.
반환
제거된 요소.
RemoveDocumentAt(int)
index
위치의 문서를 제거합니다.
public void RemoveDocumentAt(int index)
매개변수
index
int
제거할 문서의 위치.
RemovePage(XpsPage)
문서에서 페이지를 제거합니다.
public XpsPage RemovePage(XpsPage page)
매개변수
page
XpsPage
제거할 페이지.
반환
제거된 페이지.
RemovePageAt(int)
index
위치의 문서에서 페이지를 제거합니다.
public XpsPage RemovePageAt(int index)
매개변수
index
int
제거할 페이지의 위치.
반환
제거된 페이지.
Save(string)
XPS 문서를 path
에 위치한 XPS 파일로 저장합니다.
public void Save(string path)
매개변수
path
string
문서의 위치.
Save(Stream)
XPS 문서를 스트림에 저장합니다.
public void Save(Stream stream)
매개변수
stream
Stream
저장할 XPS 문서를 위한 스트림.
SaveAsImage(ImageSaveOptions)
문서를 비트맵 이미지 형식으로 저장합니다.
public byte[][][] SaveAsImage(ImageSaveOptions options)
매개변수
options
ImageSaveOptions
문서를 비트맵 이미지 형식으로 저장하기 위한 옵션.
반환
byte[][][]
결과 이미지 바이트 배열. 첫 번째 차원은 내부 문서에 대한 것이고 두 번째 차원은 내부 문서 내의 페이지에 대한 것입니다.
SaveAsPdf(string, PdfSaveOptions)
문서를 PDF 형식으로 저장합니다.
public void SaveAsPdf(string outPdfFilePath, PdfSaveOptions options)
매개변수
outPdfFilePath
string
출력 PDF 파일 경로.
options
PdfSaveOptions
문서를 PDF 형식으로 저장하기 위한 옵션.
SaveAsPdf(Stream, PdfSaveOptions)
문서를 PDF 형식으로 저장합니다.
public void SaveAsPdf(Stream stream, PdfSaveOptions options)
매개변수
stream
Stream
출력 PDF 파일을 작성할 스트림.
options
PdfSaveOptions
문서를 PDF 형식으로 저장하기 위한 옵션.
SaveAsPs(string, PsSaveOptions)
문서를 PS 형식으로 저장합니다.
public void SaveAsPs(string outPsFilePath, PsSaveOptions options)
매개변수
outPsFilePath
string
출력 PS 파일 경로.
options
PsSaveOptions
문서를 PS 형식으로 저장하기 위한 옵션.
SaveAsPs(Stream, PsSaveOptions)
문서를 PS 형식으로 저장합니다.
public void SaveAsPs(Stream stream, PsSaveOptions options)
매개변수
stream
Stream
출력 PS 파일을 작성할 스트림.
options
PsSaveOptions
문서를 PS 형식으로 저장하기 위한 옵션.
SelectActiveDocument(int)
편집을 위해 활성 문서를 선택합니다.
public void SelectActiveDocument(int documentNumber)
매개변수
documentNumber
int
문서 번호.
예외
documentNumber
가 범위를 벗어날 때 발생합니다.
SelectActivePage(int)
편집을 위해 활성 문서 페이지를 선택합니다.
public XpsPage SelectActivePage(int pageNumber)
매개변수
pageNumber
int
페이지 번호.
반환
활성 페이지에 대한 Aspose.Page.XPS.XpsModel.XpsPage 인스턴스.
예외
pageNumber
가 범위를 벗어날 때 발생합니다.
SetDocumentPrintTicket(int, DocumentPrintTicket)
printTicket
를 documentIndex
로 인덱싱된 문서에 연결합니다.
public void SetDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)
매개변수
documentIndex
int
인쇄 티켓을 연결할 문서의 인덱스.
printTicket
DocumentPrintTicket
연결할 인쇄 티켓.
SetPagePrintTicket(int, int, PagePrintTicket)
printTicket
를 documentIndex
로 인덱싱된 문서 내의 pageIndex
로 인덱싱된 페이지에 연결합니다.