EditableContent
EditableContent
ภาพรวม
EditableContent เป็นคลาสใน Aspose.PDF FOSS สำหรับ TypeScript.
มุมมองที่แก้ไขได้ต่อสตรีมของเนื้อหาหน้า (Phase 4 foundation, F1).
คลาสนี้ประกาศ 9 เมธอดสำหรับวัตถุ EditableContent ในโปรแกรม TypeScript. เมธอดที่มีให้รวมถึง: commit, constructor, editedXObjectPaths, ownXObjectResources, setTopOps, setXobjectOps, topOps, xobjectOps, xobjectResources. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน TypeScript ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.PDF FOSS สำหรับ TypeScript. คุณสมบัติ: dict, dirty, nm, ops, ownerDict, path, และอีก 1 รายการ.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
path | : string[] | อ่าน | รับเส้นทาง. |
nm | : string | อ่าน | รับค่า nm. |
dict | : PdfDict | อ่าน | รับ dict. |
ops | : ContentOp[] | อ่าน | รับค่า ops. |
dirty | : boolean | อ่าน | รับค่า dirty. |
streamCount | number | อ่าน | รับจำนวนสตรีม. |
path | : string[] | อ่าน | รับเส้นทาง. |
nm | : string | อ่าน | รับค่า nm. |
dict | : PdfDict | อ่าน | รับ dict. |
ops | : ContentOp[] | อ่าน | รับค่า ops. |
dirty | : boolean | อ่าน | รับค่า dirty. |
ownerDict | : PdfDict | อ่าน | รับพจนานุกรมของเจ้าของ. |
nm | : string | อ่าน | รับค่า nm. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
constructor(doc: Document, page: Page) | เรียก constructor(doc, page) บนอินสแตนซ์ EditableContent นี้. |
topOps(streamIndex: number) → readonly ContentOp[] | เรียก topOps(streamIndex) บนอินสแตนซ์ EditableContent นี้. |
setTopOps(streamIndex: number, ops: ContentOp[]) | ตั้งค่าค่าการดำเนินการบนสุด. |
xobjectOps(path: readonly string[]) → readonly ContentOp[] | เรียก xobjectOps(path) บนอินสแตนซ์ EditableContent นี้. |
editedXObjectPaths() → string[][] | เส้นทางของ Form XObjects ที่คัดลอกแบบ copy-on-write จนถึงตอนนี้ (สโคปที่แก้ไขแล้ว). |
xobjectResources(path: readonly string[]) → `PdfDict | undefined` |
ownXObjectResources(path: readonly string[]) → PdfDict | บังคับให้ทำ copy-on-write ของ Form XObject ที่ path และคืนค่า /Resources ของมันเอง, สร้างเป็นค่าว่างเมื่อฟอร์มไม่มี. |
setXobjectOps(path: readonly string[], ops: ContentOp[]) | ตั้งค่าค่า ops ของ xobject. |
commit() | เขียนสตรีมที่แก้ไขแล้วกลับเข้าไปในอ็อบเจ็กต์สตรีมของหน้าใหม่. |