ContentStreamBuilder

ContentStreamBuilder

סקירה

ContentStreamBuilder היא מחלקה ב‑Aspose.PDF FOSS עבור .NET.

בונה בתים של זרם תוכן PDF באמצעות תחביר האופרטור מ-PDF32000 §8-9.

מחלקה זו מספקת 49 שיטות לעבודה עם אובייקטים מסוג ContentStreamBuilder בתוכניות .NET.
השיטות הזמינות כוללות: BeginMarkedContent, BeginMarkedContentWithProps, BeginText, Build, Clip, ClipEvenOdd, CloseAndStroke, ClosePath, CurveTo, DrawXObject, EndMarkedContent, EndPath, ו‑33 שיטות נוספות.
כל החברים הציבוריים נגישים לכל יישום .NET לאחר התקנת חבילת Aspose.PDF FOSS for .NET.

שיטות

חתימהתיאור
SaveState()קורא ל‑SaveState על מופע ה‑ContentStreamBuilder הזה.
RestoreState()קורא ל‑RestoreState על מופע ה‑ContentStreamBuilder הזה.
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)קורא ל‑MoveTo על מופע ה‑ContentStreamBuilder הזה.
LineTo(x: double, y: double)קורא ל‑LineTo על מופע ה‑ContentStreamBuilder הזה.
CurveTo(x1: double, y1: double, x2: double, y2: double, x3: double, y3: double)קורא ל‑CurveTo על מופע ה‑ContentStreamBuilder הזה.
Rectangle(x: double, y: double, width: double, height: double)קורא ל‑Rectangle על מופע ה‑ContentStreamBuilder הזה.
ClosePath()קורא ל‑ClosePath על מופע ה‑ContentStreamBuilder הזה.
Stroke()קורא ל‑Stroke על מופע ה‑ContentStreamBuilder הזה.
Fill()קורא ל‑Fill על מופע ה‑ContentStreamBuilder הזה.
FillEvenOdd()קורא ל‑FillEvenOdd על מופע ה‑ContentStreamBuilder הזה.
FillAndStroke()קורא ל‑FillAndStroke על מופע ה‑ContentStreamBuilder הזה.
CloseAndStroke()קורא ל‑CloseAndStroke על מופע ה‑ContentStreamBuilder הזה.
EndPath()קורא ל‑EndPath על מופע ה‑ContentStreamBuilder הזה.
Clip()קורא ל‑Clip על מופע ה‑ContentStreamBuilder הזה.
ClipEvenOdd()קורא ל‑ClipEvenOdd על מופע ה‑ContentStreamBuilder הזה.
BeginText()קורא ל‑BeginText על מופע ה‑ContentStreamBuilder הזה.
EndText()קורא ל‑EndText על מופע ה‑ContentStreamBuilder הזה.
SetFont(fontName: string, size: double)מגדיר את ערך הגופן.
MoveTextPosition(tx: double, ty: double)קורא ל‑MoveTextPosition על מופע ה‑ContentStreamBuilder הזה.
SetTextMatrix(a: double, b: double, c: double, d: double, e: double, f: double)מגדיר את ערך מטריצת הטקסט.
SetLeading(leading: double)מגדיר את ערך ה‑leading.
NextLine()קורא ל‑NextLine על מופע ה‑ContentStreamBuilder הזה.
SetCharSpacing(spacing: double)מגדיר את ערך ריווח התווים.
SetWordSpacing(spacing: double)מגדיר את ערך ריווח המילים.
SetTextRenderingMode(mode: int)מגדיר את ערך מצב הצגת הטקסט.
ShowText(text: string)קורא ל‑ShowText על מופע ה‑ContentStreamBuilder הזה.
ShowTextBytes(bytes: byte[])מציג טקסט חד‑ביתי מקודד מראש.
ShowTextHex(glyphIds: byte[])מציג טקסט באמצעות מחרוזת מקודדת הקסדצימלית (לזהויות גליף של CIDFont).
DrawXObject(name: string)קורא ל‑DrawXObject על מופע ה‑ContentStreamBuilder הזה.
SetExtGState(name: string)מגדיר את ערך ה‑ext g state.
BeginMarkedContent(tag: string)קורא ל‑BeginMarkedContent על מופע ה‑ContentStreamBuilder הזה.
BeginMarkedContent(tag: string, mcid: int)
BeginMarkedContentWithProps(tag: string, propsDictInline: string)BDC עם מילון מאפיינים משולב (מילולית PDF שכבר סודרה).
EndMarkedContent()קורא ל‑EndMarkedContent על מופע ה‑ContentStreamBuilder הזה.
BeginMarkedContent(info: Tagged.MarkedContentInfo)מתחיל רצף תוכן מסומן באמצעות MarkedContentInfo מ‑StructureElementBuilder.
Raw(operatorText: string)קורא ל‑Raw על מופע ה‑ContentStreamBuilder הזה.
Build()בונה את זרם התוכן כמערך בתים.
ToString()בונה את זרם התוכן כמחרוזת.

ראה גם

 עברית