StructElement

StructElement

סקירה כללית

StructElement היא מחלקה ב-Aspose.PDF FOSS עבור TypeScript.

צומת בעץ המבנה: מצביע חי על המילון האמיתי /StructElem שלו.

מחלקה זו מצהירה על 10 שיטות עבור עצמים StructElement בתוכניות TypeScript. השיטות הזמינות כוללות: AddAnnotation, Append, GetBBox, GetText, MarkContent, NextMcid, SetLayoutAttributes, SetListAttributes, SetTableAttributes, constructor. כל החברים הציבוריים נגישים לכל יישום TypeScript לאחר התקנת החבילה Aspose.PDF FOSS עבור TypeScript. תכונות: A, ActualText, Alt, Attributes, C, Children, ועוד 17.

מאפיינים

שםסוגגישהתיאור
Typestringקריאהמקבל את הסוג.
StandardTypestringקריאהמקבל את הסוג הסטנדרטי.
IsStandardTypebooleanקריאהמקבל את סוג is standard.
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הקצה את ה-MCID הבא עבור page אל אלמנט זה וחבר את /ParentTree + /K.
MarkContent(page: Page, region: Rect) → numberתייג תוכן עמוד קיים תחת אלמנט זה: הקצה MCID ועטוף את הפעולות show/Do ברמה העליונה שהן בטווח region ב /<Type> <</MCID n>> BDC … EMC.
AddAnnotation(annotation: Annotation)תייג אנוטציה (למשל.
SetTableAttributes(attrs: Partial<TableAttributes>)מזג מאפייני טבלה לתוך ה-/A של אלמנט זה (שדה שמוגדר כ-undefined מוחק את המפתח הזה).
SetListAttributes(attrs: Partial<ListAttributes>)מזג מאפייני רשימה לתוך ה-/A של אלמנט זה.
SetLayoutAttributes(attrs: Partial<LayoutAttributes>)מזג מאפייני פריסה לתוך ה-/A של אלמנט זה.
 עברית