EditableContent
Overview
EditableContent is a class in Aspose.PDF FOSS for TypeScript.
Editable per-stream view of a page’s content (Phase 4 foundation, F1).
This class declares 9 methods for EditableContent objects in TypeScript programs.
Available methods include: commit, constructor, editedXObjectPaths, ownXObjectResources, setTopOps, setXobjectOps, topOps, xobjectOps, xobjectResources.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: dict, dirty, nm, ops, ownerDict, path, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
path | : string[] | Read | Gets the path. |
nm | : string | Read | Gets the nm. |
dict | : PdfDict | Read | Gets the dict. |
ops | : ContentOp[] | Read | Gets the ops. |
dirty | : boolean | Read | Gets the dirty. |
streamCount | number | Read | Gets the stream count. |
path | : string[] | Read | Gets the path. |
nm | : string | Read | Gets the nm. |
dict | : PdfDict | Read | Gets the dict. |
ops | : ContentOp[] | Read | Gets the ops. |
dirty | : boolean | Read | Gets the dirty. |
ownerDict | : PdfDict | Read | Gets the owner dict. |
nm | : string | Read | Gets the nm. |
Methods
| Signature | Description |
|---|---|
constructor(doc: Document, page: Page) | Calls constructor(doc, page) on this EditableContent instance. |
topOps(streamIndex: number) → readonly ContentOp[] | Calls topOps(streamIndex) on this EditableContent instance. |
setTopOps(streamIndex: number, ops: ContentOp[]) | Sets the top ops value. |
xobjectOps(path: readonly string[]) → readonly ContentOp[] | Calls xobjectOps(path) on this EditableContent instance. |
editedXObjectPaths() → string[][] | Paths of the Form XObjects copied-on-write so far (edited scopes). |
xobjectResources(path: readonly string[]) → PdfDict | undefined | The COW’d /Resources dict of an edited XObject scope, or undefined when it has none of its own (inherits the parent’s). |
ownXObjectResources(path: readonly string[]) → PdfDict | Force the copy-on-write of the Form XObject at path and return its own /Resources, creating an empty one when the form has none. |
setXobjectOps(path: readonly string[], ops: ContentOp[]) | Sets the xobject ops value. |
commit() | Write modified streams back into fresh page-owned stream objects. |