ContentStreamBuilder
Przegląd
ContentStreamBuilder jest klasą w Aspose.PDF FOSS dla .NET.
Tworzy bajty strumienia treści PDF, używając składni operatorów z PDF32000 §8-9.
Ta klasa udostępnia 51 metod do pracy z obiektami ContentStreamBuilder w programach .NET. Dostępne metody obejmują: BeginMarkedContent, BeginMarkedContentWithProps, BeginText, Build, Clip, ClipEvenOdd, CloseAndStroke, ClosePath, CurveTo, DrawXObject, EndMarkedContent, EndPath oraz 35 dodatkowych metod. Wszystkie publiczne elementy są dostępne dla dowolnej aplikacji .NET po zainstalowaniu pakietu Aspose.PDF FOSS dla .NET.
Metody
| Sygnatura | Opis |
|---|---|
SaveState() | Wywołuje SaveState na tej instancji ContentStreamBuilder. |
RestoreState() | Wywołuje RestoreState na tej instancji ContentStreamBuilder. |
SetMatrix(a: double, b: double, c: double, d: double, e: double, f: double) | Ustawia wartość macierzy. |
SetFillColor(r: double, g: double, b: double) | Ustawia wartość koloru wypełnienia. |
SetFillColor(color: Color) | Ustawia wartość koloru wypełnienia. |
SetStrokeColor(r: double, g: double, b: double) | Ustawia wartość koloru obrysu. |
SetStrokeColor(color: Color) | Ustawia wartość koloru obrysu. |
SetFillGray(gray: double) | Ustawia wartość szarości wypełnienia. |
SetStrokeGray(gray: double) | Ustawia wartość szarości obrysu. |
SetLineWidth(width: double) | Ustawia wartość szerokości linii. |
SetDashPattern(pattern: double[], phase: double) | Ustawia wartość wzoru kreski. |
SetLineCap(cap: int) | Ustawia wartość końcówki linii. |
SetLineJoin(join: int) | Ustawia wartość łączenia linii. |
MoveTo(x: double, y: double) | Wywołuje MoveTo(x, y) na tej instancji ContentStreamBuilder. |
LineTo(x: double, y: double) | Wywołuje LineTo(x, y) na tej instancji ContentStreamBuilder. |
CurveTo(x1: double, y1: double, x2: double, y2: double, x3: double, y3: double) | Wywołuje CurveTo(x1, y1, x2, y2, x3, y3) na tej instancji ContentStreamBuilder. |
Rectangle(x: double, y: double, width: double, height: double) | Wywołuje Rectangle(x, y, width, height) na tej instancji ContentStreamBuilder. |
ClosePath() | Wywołuje ClosePath na tej instancji ContentStreamBuilder. |
Stroke() | Wywołuje Stroke na tej instancji ContentStreamBuilder. |
Fill() | Wywołuje Fill na tej instancji ContentStreamBuilder. |
FillEvenOdd() | Wywołuje FillEvenOdd na tej instancji ContentStreamBuilder. |
FillAndStroke() | Wywołuje FillAndStroke na tej ContentStreamBuilder instancji. |
CloseAndStroke() | Wywołuje CloseAndStroke na tej instancji ContentStreamBuilder. |
EndPath() | Wywołuje EndPath na tej instancji ContentStreamBuilder. |
Clip() | Wywołuje Clip na tej instancji ContentStreamBuilder. |
ClipEvenOdd() | Wywołuje ClipEvenOdd na tej instancji ContentStreamBuilder. |
BeginText() | Wywołuje BeginText na tej instancji ContentStreamBuilder. |
EndText() | Wywołuje EndText na tej instancji ContentStreamBuilder. |
SetFont(fontName: string, size: double) | Ustawia wartość czcionki. |
MoveTextPosition(tx: double, ty: double) | Wywołuje MoveTextPosition(tx, ty) na tej instancji ContentStreamBuilder. |
SetTextMatrix(a: double, b: double, c: double, d: double, e: double, f: double) | Ustawia wartość macierzy tekstu. |
SetLeading(leading: double) | Ustawia wartość wiodącą. |
NextLine() | Wywołuje NextLine na tej instancji ContentStreamBuilder. |
SetCharSpacing(spacing: double) | Ustawia wartość odstępu znaków. |
SetWordSpacing(spacing: double) | Ustawia wartość odstępu między słowami. |
SetHorizontalScaling(percent: double) | Poziome skalowanie tekstu (Tz), wyrażone jako procent normalnej szerokości (100 = bez skalowania). |
SetTextRenderingMode(mode: int) | Ustawia wartość trybu renderowania tekstu. |
SetTextRise(rise: double) | Ustawia wartość podniesienia tekstu. |
ShowText(text: string) | Wywołuje ShowText(text) na tej instancji ContentStreamBuilder. |
ShowTextBytes(bytes: byte[]) | Pokaż wstępnie zakodowany tekst jednobajtowy. |
ShowTextHex(glyphIds: byte[]) | Pokaż tekst przy użyciu ciągu zakodowanego w formacie szesnastkowym (dla identyfikatorów glifów CIDFont). |
DrawXObject(name: string) | Wywołuje DrawXObject(name) na tej instancji ContentStreamBuilder. |
SetExtGState(name: string) | Ustawia wartość stanu ext g. |
BeginMarkedContent(tag: string) | Wywołuje BeginMarkedContent(tag) na tej instancji ContentStreamBuilder. |
BeginMarkedContent(tag: string, mcid: int) | Wywołuje BeginMarkedContent(tag, mcid) na tej instancji ContentStreamBuilder. |
BeginMarkedContentWithProps(tag: string, propsDictInline: string) | BDC z wbudowanym słownikiem właściwości (już zserializowanym literałem słownika PDF). |
EndMarkedContent() | Wywołuje EndMarkedContent na tej instancji ContentStreamBuilder. |
BeginMarkedContent(info: Tagged.MarkedContentInfo) | Rozpocznij sekwencję oznaczonej treści przy użyciu MarkedContentInfo z StructureElementBuilder. |
Raw(operatorText: string) | Wywołuje Raw(operatorText) na tej instancji ContentStreamBuilder. |
Build() | Zbuduj strumień zawartości jako tablicę bajtów. |
ToString() | Zbuduj strumień zawartości jako ciąg znaków. |