StructElement

StructElement

概要

StructElement は Aspose.PDF の FOSS における TypeScript 用のクラスです。

構造ツリーのノード:実際の /StructElem 辞書に対するライブハンドル。

このクラスは TypeScript プログラム内の StructElement オブジェクト向けに 10 のメソッドを宣言します。利用可能なメソッドは、AddAnnotation、Append、GetBBox、GetText、MarkContent、NextMcid、SetLayoutAttributes、SetListAttributes、SetTableAttributes、constructor です。すべてのパブリックメンバーは、Aspose.PDF の TypeScript 用 FOSS パッケージをインストールした後、任意の TypeScript アプリケーションから利用可能です。プロパティ: A、ActualText、Alt、Attributes、C、Children、およびその他 17 件。

プロパティ

名前型アクセス説明
Typestring読み取り型を取得します。
StandardTypestring読み取り標準型を取得します。
IsStandardTypeboolean読み取り標準タイプかどうかを取得します。
Parent`StructElementundefined`読み取り
ChildrenStructElement[]読み取り子要素を取得します。
Title`stringundefined`読み取り/書き込み
Alt`stringundefined`読み取り/書き込み
ActualText`stringundefined`読み取り/書き込み
Expansion`stringundefined`読み取り/書き込み
ID`stringundefined`読み取り/書き込み
Lang`stringundefined`読み取り/書き込み
EffectiveLang`stringundefined`読み取り
Page`Pageundefined`読み取り
Attributes{ A: PdfObject[]; C: PdfObject[] }読み取り属性を取得します。
A: PdfObject[]読み取りa を取得します。
C: PdfObject[]読み取りc を取得します。
ContentItemsContentItem[]読み取りコンテンツ項目を取得します。
NodesStructNode[]読み取りノードを取得します。
g: GlyphEvent読み取りg を取得します。
at: number読み取りat を取得します。
TableAttributes`TableAttributesundefined`読み取り
ListAttributes`ListAttributesundefined`読み取り
LayoutAttributes`LayoutAttributesundefined`読み取り

メソッド

シグネチャ説明
`constructor(doc: Document, Dict: PdfDict, Ref: PdfRefundefined, Root: StructTreeRoot)`
GetText(skip: (e: StructElement) => boolean) → stringこの要素のテキストとその子孫のテキストを、/K(読み取り)順で。
GetBBox(page: Page) → `[number, number, number, number]undefined`
Append(type: string, opts: ElemOpts) → StructElementこの要素の下に type の子構造要素を作成し、ハンドルを返します。
NextMcid(page: Page) → numberこの要素に対して page の次の MCID を割り当て、 /ParentTree と /K を配線します。
MarkContent(page: Page, region: Rect) → numberこの要素の下に既存のページコンテンツにタグ付けします:MCID を割り当て、コンテンツが region に該当する上位レベルの show/Do 操作を /<Type> <</MCID n>> BDC … EMC でラップします。
AddAnnotation(annotation: Annotation)アノテーションにタグ付けする(例:
SetTableAttributes(attrs: Partial<TableAttributes>)この要素の /A にテーブル属性をマージします(undefined がそのキーを削除します)。
SetListAttributes(attrs: Partial<ListAttributes>)この要素の /A にリスト属性をマージします。
SetLayoutAttributes(attrs: Partial<LayoutAttributes>)この要素の /A にレイアウト属性をマージします。
 日本語