ContentStreamBuilder
개요
ContentStreamBuilder은 .NET용 Aspose.PDF FOSS의 클래스입니다.
PDF32000 §8-9의 연산자 구문을 사용하여 PDF 콘텐츠 스트림 바이트를 빌드합니다.
이 클래스는 .NET 프로그램에서 ContentStreamBuilder 객체를 작업하기 위한 49개의 메서드를 제공합니다.
사용 가능한 메서드에는 BeginMarkedContent, BeginMarkedContentWithProps, BeginText, Build, Clip, ClipEvenOdd, CloseAndStroke, ClosePath, CurveTo, DrawXObject, EndMarkedContent, EndPath 및 추가 33개의 메서드가 포함됩니다.
모든 public 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 모든 .NET 애플리케이션에서 접근할 수 있습니다.
메서드
| Signature | Description |
|---|---|
SaveState() | 이 ContentStreamBuilder 인스턴스에서 SaveState를 호출합니다. |
RestoreState() | 이 ContentStreamBuilder 인스턴스에서 RestoreState를 호출합니다. |
SetMatrix(a: double, b: double, c: double, d: double, e: double, f: double) | 행렬 값을 설정합니다. |
SetFillColor(r: double, g: double, b: double) | 채우기 색상 값을 설정합니다. |
SetFillColor(color: Color) | 채우기 색상 값을 설정합니다. |
SetStrokeColor(r: double, g: double, b: double) | 스트로크 색상 값을 설정합니다. |
SetStrokeColor(color: Color) | 스트로크 색상 값을 설정합니다. |
SetFillGray(gray: double) | 채우기 회색 값을 설정합니다. |
SetStrokeGray(gray: double) | 스트로크 회색 값을 설정합니다. |
SetLineWidth(width: double) | 선 너비 값을 설정합니다. |
SetDashPattern(pattern: double[], phase: double) | 대시 패턴 값을 설정합니다. |
SetLineCap(cap: int) | 선 캡 값을 설정합니다. |
SetLineJoin(join: int) | 선 조인 값을 설정합니다. |
MoveTo(x: double, y: double) | 이 ContentStreamBuilder 인스턴스에서 MoveTo를 호출합니다. |
LineTo(x: double, y: double) | 이 ContentStreamBuilder 인스턴스에서 LineTo를 호출합니다. |
CurveTo(x1: double, y1: double, x2: double, y2: double, x3: double, y3: double) | 이 ContentStreamBuilder 인스턴스에서 CurveTo를 호출합니다. |
Rectangle(x: double, y: double, width: double, height: double) | 이 ContentStreamBuilder 인스턴스에서 Rectangle를 호출합니다. |
ClosePath() | 이 ContentStreamBuilder 인스턴스에서 ClosePath를 호출합니다. |
Stroke() | 이 ContentStreamBuilder 인스턴스에서 Stroke를 호출합니다. |
Fill() | 이 ContentStreamBuilder 인스턴스에서 Fill을 호출합니다. |
FillEvenOdd() | 이 ContentStreamBuilder 인스턴스에서 FillEvenOdd를 호출합니다. |
FillAndStroke() | 이 ContentStreamBuilder 인스턴스에서 FillAndStroke를 호출합니다. |
CloseAndStroke() | 이 ContentStreamBuilder 인스턴스에서 CloseAndStroke를 호출합니다. |
EndPath() | 이 ContentStreamBuilder 인스턴스에서 EndPath를 호출합니다. |
Clip() | 이 ContentStreamBuilder 인스턴스에서 Clip을 호출합니다. |
ClipEvenOdd() | 이 ContentStreamBuilder 인스턴스에서 ClipEvenOdd를 호출합니다. |
BeginText() | 이 ContentStreamBuilder 인스턴스에서 BeginText를 호출합니다. |
EndText() | 이 ContentStreamBuilder 인스턴스에서 EndText를 호출합니다. |
SetFont(fontName: string, size: double) | 폰트 값을 설정합니다. |
MoveTextPosition(tx: double, ty: double) | 이 ContentStreamBuilder 인스턴스에서 MoveTextPosition을 호출합니다. |
SetTextMatrix(a: double, b: double, c: double, d: double, e: double, f: double) | 텍스트 행렬 값을 설정합니다. |
SetLeading(leading: double) | 리딩 값을 설정합니다. |
NextLine() | 이 ContentStreamBuilder 인스턴스에서 NextLine을 호출합니다. |
SetCharSpacing(spacing: double) | 문자 간격 값을 설정합니다. |
SetWordSpacing(spacing: double) | 단어 간격 값을 설정합니다. |
SetTextRenderingMode(mode: int) | 텍스트 렌더링 모드 값을 설정합니다. |
ShowText(text: string) | 이 ContentStreamBuilder 인스턴스에서 ShowText를 호출합니다. |
ShowTextBytes(bytes: byte[]) | 사전 인코딩된 단일 바이트 텍스트를 표시합니다. |
ShowTextHex(glyphIds: byte[]) | 16진수 인코딩 문자열을 사용하여 텍스트를 표시합니다 (CIDFont 글리프 ID용). |
DrawXObject(name: string) | 이 ContentStreamBuilder 인스턴스에서 DrawXObject를 호출합니다. |
SetExtGState(name: string) | ext g state 값을 설정합니다. |
BeginMarkedContent(tag: string) | 이 ContentStreamBuilder 인스턴스에서 BeginMarkedContent를 호출합니다. |
BeginMarkedContent(tag: string, mcid: int) | |
BeginMarkedContentWithProps(tag: string, propsDictInline: string) | 인라인 속성 사전(BDC) (이미 직렬화된 PDF 사전 리터럴)과 함께 사용합니다. |
EndMarkedContent() | 이 ContentStreamBuilder 인스턴스에서 EndMarkedContent를 호출합니다. |
BeginMarkedContent(info: Tagged.MarkedContentInfo) | StructureElementBuilder에서 MarkedContentInfo를 사용하여 표시된 콘텐츠 시퀀스를 시작합니다. |
Raw(operatorText: string) | 이 ContentStreamBuilder 인스턴스에서 Raw를 호출합니다. |
Build() | 콘텐츠 스트림을 바이트 배열로 빌드합니다. |
ToString() | 콘텐츠 스트림을 문자열로 빌드합니다. |