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

NameTypeAccessDescription
path: string[]ReadGets the path.
nm: stringReadGets the nm.
dict: PdfDictReadGets the dict.
ops: ContentOp[]ReadGets the ops.
dirty: booleanReadGets the dirty.
streamCountnumberReadGets the stream count.
path: string[]ReadGets the path.
nm: stringReadGets the nm.
dict: PdfDictReadGets the dict.
ops: ContentOp[]ReadGets the ops.
dirty: booleanReadGets the dirty.
ownerDict: PdfDictReadGets the owner dict.
nm: stringReadGets the nm.

Methods

SignatureDescription
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 | undefinedThe 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[])PdfDictForce 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.