FileAttachmentAnnotation

FileAttachmentAnnotation

概述

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

一个 /FileAttachment 注释:页面上的一个图标,其 /FS 嵌入了一个文件。

此类为 TypeScript 程序中的 FileAttachmentAnnotation 对象声明了 3 个方法。可用的方法包括:Flatten、GetBytes、constructor。在安装了用于 TypeScript 的 Aspose.PDF FOSS 包后,所有公共成员对任何 TypeScript 应用程序均可访问。属性:Color、Contents、Description、FileName、Flags、Hidden,以及另外 8 项。

属性

名称类型访问描述
Iconstring读写获取图标。
FileNamestring读取获取文件名。
Description`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`读写

方法

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