ContentStreamBuilder
ภาพรวม
ContentStreamBuilder เป็นคลาสใน Aspose.PDF FOSS สําหรับ .NET.
สร้าง PDF content stream bytes โดยใช้ syntax ของผู้ดําเนินการจาก PDF32000 §8-9.
หมวดนี้ให้วิธีการ 51 สําหรับทํางานกับ ContentStreamBuilder วัตถุในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: BeginMarkedContent, BeginMarkedContentWithProps, BeginText, Build, Clip, ClipEvenOdd, CloseAndStroke, ClosePath, CurveTo, DrawXObject, EndMarkedContent, EndPath,และ 35 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS for .Net.
วิธีการ
| Signature | คําอธิบาย |
|---|---|
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) | ตั้งค่าค่ากรayscale ของการเติม. |
SetStrokeGray(gray: double) | ตั้งค่าค่ากรayscale ของเส้นขอบ. |
SetLineWidth(width: double) | ตั้งค่าค่าความกว้างของเส้น. |
SetDashPattern(pattern: double[], phase: double) | ตั้งค่าค่ารูปแบบเส้นประ. |
SetLineCap(cap: int) | ตั้งค่าค่าการปิดปลายเส้น. |
SetLineJoin(join: int) | ตั้งค่าค่าการเชื่อมต่อของเส้น. |
MoveTo(x: double, y: double) | เรียก MoveTo(x, y) ในตัวอย่างนี้ ContentStreamBuilder. |
LineTo(x: double, y: double) | เรียก LineTo(x, y) ในตัวอย่างนี้ ContentStreamBuilder. |
CurveTo(x1: double, y1: double, x2: double, y2: double, x3: double, y3: double) | เรียก CurveTo ((x1, y1, x2, y2, x3, y3) ในตัวอย่างนี้ ContentStreamBuilder. |
Rectangle(x: double, y: double, width: double, height: double) | เรียก Rectangle ((x, y, ความกว้าง,ความสูง) ในตัวอย่าง ContentStreamBuilder นี้. |
ClosePath() | เรียก ClosePath ในตัวอย่างนี้ ContentStreamBuilder. |
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(tx, ty) ในตัวอย่างนี้ ContentStreamBuilder. |
SetTextMatrix(a: double, b: double, c: double, d: double, e: double, f: double) | ตั้งค่าค่าเมทริกซ์ข้อความ. |
SetLeading(leading: double) | ตั้งค่าค่าการนำหน้า. |
NextLine() | เรียก NextLine ในตัวอย่างนี้ ContentStreamBuilder. |
SetCharSpacing(spacing: double) | ตั้งค่าค่าการเว้นระยะอักขระ. |
SetWordSpacing(spacing: double) | ตั้งค่าค่าการเว้นระยะห่างของคำ. |
SetHorizontalScaling(percent: double) | การปรับขนาดข้อความแนวขอบ (Tz) แสดงเป็นร้อยละของกว้างปกติ (100 = ไม่มีการปันขนาด). |
SetTextRenderingMode(mode: int) | ตั้งค่าค่าโหมดการเรนเดอร์ข้อความ. |
SetTextRise(rise: double) | ตั้งค่าค่าการยกข้อความ. |
ShowText(text: string) | เรียก ShowText(text) ในตัวอย่างนี้ ContentStreamBuilder. |
ShowTextBytes(bytes: byte[]) | แสดงข้อความที่คัดกรองก่อนแบบเดียวไบต์. |
ShowTextHex(glyphIds: byte[]) | แสดงข้อความโดยใช้รหัส hex (สําหรับ ID glyph CIDFont). |
DrawXObject(name: string) | เรียก DrawXObject ((name) ในตัวอย่าง ContentStreamBuilder นี้. |
SetExtGState(name: string) | ตั้งค่าค่า state ของ ext g. |
BeginMarkedContent(tag: string) | เรียก BeginMarkedContent(tag) ในตัวอย่างนี้ ContentStreamBuilder. |
BeginMarkedContent(tag: string, mcid: int) | เรียก BeginMarkedContent(tag, mcid) ในตัวอย่างนี้ ContentStreamBuilder. |
BeginMarkedContentWithProps(tag: string, propsDictInline: string) | BDC พร้อมกับคําศัพท์คุณสมบัติในเส้น (PDF dict literal ที่มีการจัดจําหน่ายแล้ว). |
EndMarkedContent() | เรียก EndMarkedContent ในตัวอย่างนี้ ContentStreamBuilder. |
BeginMarkedContent(info: Tagged.MarkedContentInfo) | เริ่มการติดตามเนื้อหาที่ถูกกําหนดโดยใช้ MarkedContentInfo จาก StructureElementBuilder. |
Raw(operatorText: string) | เรียก Raw(operatorText) ในตัวอย่าง ContentStreamBuilder นี้. |
Build() | สร้างสตรีมเนื้อหาเป็นอาร์เรย์ไบต์. |
ToString() | สร้างสตรีมเนื้อหาเป็นเส้นเชือก. |