ScreenAnnotation

ScreenAnnotation

概述

ScreenAnnotation 是 Aspose.PDF FOSS 用于 .NET 的一个类。继承自:Annotation。

该类提供 8 个方法,用于在 .NET 程序中处理 ScreenAnnotation 对象。可用的方法包括:Accept, ChangeAfterResize, Clone, Flatten, GetRectangle, ScreenAnnotation, UpdateAppearances, WriteXfdf. 在安装 Aspose.PDF FOSS 用于 .NET 的软件包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Action, Actions, ActiveState, Alignment, AnnotationFlags, AnnotationState, 以及另外 41 项。

属性

名称类型访问描述
AnnotationTypeAnnotationType读取始终屏幕。
ActionPdfAction?读取渲染启动操作(/A 条目),如果未设置则为 null。
Titlestring?读写在查看器界面中显示的标题/标签(/T 条目)。
RectRectangle?读写注释矩形(页面上的位置)。
InnerRectRectangle?读取通过 /RD(矩形差异)条目内嵌的注释矩形——实际在 Rect 内绘制的区域。
Widthdouble读写注释矩形的宽度。
Heightdouble读写注释矩形的高度。
ActiveStatestring?读写当前活动的外观状态(/AS 条目)。
AlignmentTextAlignment读写文本对齐(用于携带富文本的自由文本/小部件注释)。
HorizontalAlignmentAspose.Pdf.HorizontalAlignment读写水平对齐(在 Alignment 之外额外显示;两者可以独立设置)。
TextHorizontalAlignmentAspose.Pdf.HorizontalAlignment读写文本特定的水平对齐覆盖。
AppearanceAppearanceDictionary读取外观字典(/AP 条目)——以外观流名称 (N, D, R) 为键。
StatesAppearanceDictionary读取外观状态字典(AP/N 的每个状态的子字典),例如.
NormalAppearanceXForm?读取注释的常规 (/AP /N) 外观,以 XForm 形式表示;如果没有则为 null。
UpdateAppearanceOnConvertbool读写在将注释保存到已转换的文档时,是否重新生成外观流。
UseFontSubsetbool读写是否应对嵌入的字体(如果有)进行子集化。
Contentsstring?读写注释内容(文本)。
Opacitydouble读写注释不透明度 (0.0 = 透明, 1.0 = 不透明)。
BorderBorder?读写注释边框。
ColorColor读写注释边框颜色 (/C 条目)。
InteriorColorColor?读写注释的内部颜色(/IC 条目,用于圆形/方形/线条注释)。
Namestring?读写注释名称(唯一标识符 — /NM 条目)。
FullNamestring?读取完全限定的注释名称。
Subjectstring?读写注释主题(/Subj 条目)。
ModifiedDatestring?读取修改日期。
ModifiedDateTime读写/M(modified)日期作为已键入的 DateTime。
FlagsAnnotationFlags读写注释标志(/F entry)— 用作整数和已键入形式的存储后端。
AnnotationFlagsAnnotationFlags读写Flags 的类型别名,匹配公开接口,并将 AnnotationFlags 作为属性公开。
ActionsPdfActionCollection读取与此注释关联的操作集合。
Authorstring?读取注释的作者(/T 条目)。
AnnotationStatestring?读取注释状态(/State 条目),例如.
AnnotationStateModelstring?读取注释状态模型(/StateModel 条目),例如.
ReplyTypestring?读取回复类型(/RT 条目),例如。
InReplyToAnnotation?读写此回复所对应的注释(/IRT 条目)。
QuadPointsPoint[]读写QuadPoints 作为 Point 值的数组。
CharacteristicsCharacteristics读取外观特性(边框颜色、背景颜色、旋转)。
PageIndexint读取拥有此注释的页面的以1为起始的索引。
PagePage?读取拥有此注释的页面,如果无法解析则为 null(例如.
VerticalAlignmentVerticalAlignment读写对本段落应用的垂直对齐。
MarginMarginInfo读写对本段落应用的外边距信息。
IsFirstParagraphInColumnbool读写强制段落在新列开始。
IsKeptWithNextbool读写保持此段落与下一段落在同一页。
IsInNewPagebool读写强制段落在新页面上开始。
IsInLineParagraphbool读写内联段落标志(不另起新行)。
HyperlinkTextstring?读写旧版字符串类型的超链接目标。
HyperlinkHyperlink?读写已对段落应用了已键入的超链接装饰。
ZIndexint读写DOM 渲染器使用的 Z 顺序索引。

方法

签名描述
ScreenAnnotation(page: Page, rect: Rectangle, mediaFile: string)创建一个引用 mediaFile 的屏幕注释。
Accept(visitor: AnnotationSelector)对这个 ScreenAnnotation 实例调用 Accept(visitor)。
GetRectangle(considerRotation: bool)通过 considerRotation 调整边界矩形。
ChangeAfterResize(transform: Matrix)在用户调整页面或宿主矩形大小后,调整注释的几何形状。
UpdateAppearances()从注释的当前几何形状和颜色重新生成普通外观流 (/AP /N)。
WriteXfdf(writer: System.Xml.XmlWriter)将此注释序列化为 XFDF 元素写入(PDF 32000 §12.7.8 / XFDF 3.0)。
Flatten()将此注释扁平化 — 将其视觉外观渲染到页面内容中,并从页面的注释数组中移除。
Clone()浅拷贝 — 复制标量/引用共享的状态。

另请参阅

 中文