PDF3DAnnotation
概述
PDF3DAnnotation 是 Aspose.PDF FOSS 用于 .NET 的一个类。继承自:Annotation。
该类提供 14 种方法,用于在 .NET 程序中处理 PDF3DAnnotation 对象。可用的方法包括:Accept,ChangeAfterResize,ClearImagePreview,Clone,Flatten,GetImagePreview,GetRectangle,PDF3DAnnotation,SetDefaultViewIndex,SetImagePreview,UpdateAppearances,WriteXfdf。在安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Action,Actions,ActiveState,Alignment,AnnotationFlags,AnnotationState,以及另外 47 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
AnnotationType | AnnotationType | 读取 | 获取注释类型。 |
Pdf3DArtwork | PDF3DArtwork? | 读取 | 此注释背后的 3D 艺术作品。 |
DefaultView | PDF3DView? | 读取 | 默认(annotation-level)3D 视图:基于 1 的 SetDefaultViewIndex 选择,或在未设置(valid)索引时显示艺术作品的第一个视图。 |
Content | PDF3DContent? | 读写 | 获取或设置内容。 |
LightingScheme | PDF3DLightingScheme? | 读取 | 获取灯光方案。 |
RenderMode | PDF3DRenderMode? | 读取 | 获取渲染模式。 |
ViewArray | PDF3DViewArray | 读取 | 艺术作品的视图;一个没有可解析艺术作品的注释(例如. |
Rect | Rectangle? | 读写 | 注释矩形(页面上的位置)。 |
InnerRect | Rectangle? | 读取 | 通过 /RD(矩形差异)条目内缩的注释矩形——实际在 Rect 内绘制的区域。 |
Width | double | 读写 | 注释矩形的宽度。 |
Height | double | 读写 | 注释矩形的高度。 |
ActiveState | string? | 读写 | 当前激活的外观状态(/AS 条目)。 |
Alignment | TextAlignment | 读写 | 文本对齐(用于携带富文本的自由文本/小部件批注)。 |
HorizontalAlignment | Aspose.Pdf.HorizontalAlignment | 读写 | 水平对齐(在 Alignment 之外额外暴露;两者可独立设置)。 |
TextHorizontalAlignment | Aspose.Pdf.HorizontalAlignment | 读写 | 文本专用的水平对齐覆盖。 |
Appearance | AppearanceDictionary | 读取 | 外观字典(/AP 条目)——以外观流名称 (N, D, R) 为键。 |
States | AppearanceDictionary | 读取 | 外观状态字典(AP/N 的每个状态子字典),例如. |
NormalAppearance | XForm? | 读取 | 注释的正常 (/AP /N) 外观,以 XForm 表示;如果没有,则为 null。 |
UpdateAppearanceOnConvert | bool | 读写 | 在将注释保存到已转换的文档时,是否重新生成外观流。 |
UseFontSubset | bool | 读写 | 是否应对嵌入的字体(如果有)进行子集化。 |
Contents | string? | 读写 | 注释内容(文本)。 |
Opacity | double | 读写 | 注释不透明度(0.0 = 透明,1.0 = 不透明)。 |
Border | Border? | 读写 | 注释边框。 |
Color | Color | 读写 | 注释边框颜色(/C entry)。 |
InteriorColor | Color? | 读写 | 注释内部颜色(/IC entry, 用于圆形/方形/线条注释)。 |
Title | string? | 读写 | 注释标题(标记注释的作者)。 |
Name | string? | 读写 | 注释名称(唯一标识符 — /NM 条目)。 |
FullName | string? | 读取 | 完全限定的注释名称。 |
Subject | string? | 读写 | 注释主题(/Subj 条目)。 |
ModifiedDate | string? | 读取 | 修改日期。 |
Modified | DateTime | 读写 | /M(已修改)日期,以 DateTime 类型表示。 |
Flags | AnnotationFlags | 读写 | 注解标志(/F entry)——用于为整数和类型化形式提供存储后端。 |
AnnotationFlags | AnnotationFlags | 读写 | Flags 的类型化别名,匹配公开接口,使 AnnotationFlags 作为属性暴露。 |
Action | PdfAction? | 读写 | 与此注解关联的操作(/A entry)。 |
Actions | PdfActionCollection | 读取 | 与此注释关联的操作集合。 |
Author | string? | 读取 | 注释作者(/T 条目)。 |
AnnotationState | string? | 读取 | 注释状态(/State 条目),例如。 |
AnnotationStateModel | string? | 读取 | 注释状态模型(/StateModel 条目),例如。 |
ReplyType | string? | 读取 | 回复类型(/RT 条目),例如。 |
InReplyTo | Annotation? | 读写 | 此回复所对应的注释(/IRT 条目)。 |
QuadPoints | Point[] | 读写 | QuadPoints 作为 Point 值的数组。 |
Characteristics | Characteristics | 读取 | 外观特征(边框颜色、背景颜色、旋转)。 |
PageIndex | int | 读取 | 拥有此注释的页面的基于1的索引。 |
Page | Page? | 读取 | 拥有此注释的页面,若无法解析则为 null(例如. |
VerticalAlignment | VerticalAlignment | 读写 | 对该段落应用的垂直对齐。 |
Margin | MarginInfo | 读写 | 外边距信息已应用于此段落。 |
IsFirstParagraphInColumn | bool | 读写 | 强制段落在新列开始。 |
IsKeptWithNext | bool | 读写 | 保持此段落与下一段在同一页。 |
IsInNewPage | bool | 读写 | 强制段落在新页面开始。 |
IsInLineParagraph | bool | 读写 | 行内段落标记(不换行)。 |
HyperlinkText | string? | 读写 | 旧版字符串类型的超链接目标。 |
Hyperlink | Hyperlink? | 读写 | 对段落应用的已键入超链接装饰。 |
ZIndex | int | 读写 | DOM 渲染器使用的 Z-顺序索引。 |
方法
| 签名 | 描述 |
|---|---|
PDF3DAnnotation(page: Page, rect: Rectangle, pdf3DArtwork: PDF3DArtwork) | 在此 PDF3DAnnotation 实例上调用 PDF3DAnnotation(page, rect, pdf3DArtwork)。 |
PDF3DAnnotation(page: Page, rect: Rectangle, pdf3DArtwork: PDF3DArtwork, activation: PDF3DActivation) | 在此 PDF3DAnnotation 实例上调用 PDF3DAnnotation(page, rect, pdf3DArtwork, activation)。 |
Accept(visitor: AnnotationSelector) | 在此 PDF3DAnnotation 实例上调用 Accept(visitor)。 |
SetDefaultViewIndex(index: int) | 设置默认视图索引值。 |
GetImagePreview() | 在此 PDF3DAnnotation 实例上调用 GetImagePreview。 |
SetImagePreview(image: Stream) | 设置图像预览值。 |
SetImagePreview(filename: string) | 设置图像预览值。 |
ClearImagePreview() | 在此 PDF3DAnnotation 实例上调用 ClearImagePreview。 |
GetRectangle(considerRotation: bool) | 通过 considerRotation 调整边界矩形。 |
ChangeAfterResize(transform: Matrix) | 在用户调整页面或宿主矩形大小后,调整注释的几何形状。 |
UpdateAppearances() | 根据注释当前的几何形状和颜色重新生成常规外观流 (/AP /N)。 |
WriteXfdf(writer: System.Xml.XmlWriter) | 将此注释序列化为 XFDF 元素写入 writer(PDF 32000 §12.7.8 / XFDF 3.0)。 |
Flatten() | 将此注释展平——将其视觉外观渲染到页面内容中,并从页面的 annotations 数组中移除。 |
Clone() | 浅拷贝——复制标量/引用共享的状态。 |