StructElement

StructElement

Přehled

StructElement je třída v Aspose.PDF FOSS pro TypeScript.

Uzel ve stromu struktury: živý odkaz na jeho skutečný /StructElem slovník.

Tato třída deklaruje 10 metod pro objekty StructElement v programech TypeScript. Dostupné metody zahrnují: AddAnnotation, Append, GetBBox, GetText, MarkContent, NextMcid, SetLayoutAttributes, SetListAttributes, SetTableAttributes, constructor. Všichni veřejní členové jsou přístupní jakékoli aplikaci TypeScript po instalaci balíčku Aspose.PDF FOSS pro TypeScript. Vlastnosti: A, ActualText, Alt, Attributes, C, Children a dalších 17.

Vlastnosti

Název:Typ:PřístupPopis:
TypestringČteníZíská typ.
StandardTypestringČteníZíská standardní typ.
IsStandardTypebooleanČteníZíská typ is standard.
Parent`StructElementundefined`Čtení
ChildrenStructElement[]ČteníZíská potomky.
Title`stringundefined`Čtení/zápis
Alt`stringundefined`Čtení/zápis
ActualText`stringundefined`Čtení/zápis
Expansion`stringundefined`Čtení/zápis
ID`stringundefined`Čtení/zápis
Lang`stringundefined`Čtení/zápis
EffectiveLang`stringundefined`Čtení
Page`Pageundefined`Čtení
Attributes{ A: PdfObject[]; C: PdfObject[] }ČteníZíská atributy.
A: PdfObject[]ČteníZíská a.
C: PdfObject[]ČteníZíská c.
ContentItemsContentItem[]ČteníZíská položky obsahu.
NodesStructNode[]ČteníZíská uzly.
g: GlyphEventČteníZíská g.
at: numberČteníZíská at.
TableAttributes`TableAttributesundefined`Čtení
ListAttributes`ListAttributesundefined`Čtení
LayoutAttributes`LayoutAttributesundefined`Čtení

Metody

Podpis:Popis:
`constructor(doc: Document, Dict: PdfDict, Ref: PdfRefundefined, Root: StructTreeRoot)`
GetText(skip: (e: StructElement) => boolean) → stringText tohoto elementu a jeho potomků, v pořadí /K (čtení).
GetBBox(page: Page) → `[number, number, number, number]undefined`
Append(type: string, opts: ElemOpts) → StructElementVytvořte podřízený strukturální prvek type pod tímto; vrátí jeho handle.
NextMcid(page: Page) → numberPřiřaďte další MCID pro page k tomuto prvku a propojte /ParentTree + /K.
MarkContent(page: Page, region: Rect) → numberOznačte existující obsah stránky pod tímto prvkem: přiřaďte MCID a zabalte operace top-level show/Do, jejichž obsah spadá do region, do /<Type> <</MCID n>> BDC … EMC.
AddAnnotation(annotation: Annotation)Označte anotaci (např.
SetTableAttributes(attrs: Partial<TableAttributes>)Sloučte atributy tabulky do /A tohoto elementu (pole nastavené na undefined smaže tento klíč).
SetListAttributes(attrs: Partial<ListAttributes>)Sloučte atributy seznamu do /A tohoto prvku.
SetLayoutAttributes(attrs: Partial<LayoutAttributes>)Sloučte atributy rozvržení do /A tohoto prvku.
 Čeština