CaretAnnotation

CaretAnnotation

概述

CaretAnnotation 是 Aspose.PDF FOSS 中用于 TypeScript 的一个类。继承自:Annotation。

一个 /Caret 注释(PDF 32000-1 §12.5.6.11):一种文本插入标记,绘制为位于应添加文本位置的楔形,可选地带有段落符号。

此类为 TypeScript 程序中的 CaretAnnotation 对象声明了 2 个方法。可用的方法包括:Flatten、constructor。在安装了面向 TypeScript 的 Aspose.PDF FOSS 包之后,所有公共成员对任何 TypeScript 应用程序均可访问。属性:Author、Color、Contents、Flags、Hidden、Layer,以及另外 7 项。

属性

名称类型访问描述
Symbol`‘none’‘paragraph’`读写
Author`stringundefined`读写
Subtypestring读取获取子类型。
Rect`[number, number, number, number]undefined`读写
Color`[number, number, number]undefined`读写
Contents`stringundefined`读写
Name`stringundefined`读写
Layer`Layerundefined`读写
ModDate`Datestringundefined`
Flagsnumber读写获取标志。
Printboolean读写获取打印。
Hiddenboolean读写获取隐藏状态。
Opacity`numberundefined`读写

方法

签名描述
constructor(doc: Document, Dict: PdfDict)在此 CaretAnnotation 实例上调用构造函数(doc, Dict)。
Flatten() → boolean仅将此注释烘焙进静态页面内容:在其 /Rect 位置将其 /AP /N appearance 绘制到页面的 /Contents 中,并从 /Annots 中移除。
 中文