FileAttachmentAnnotation
Visión general
FileAttachmentAnnotation es una clase en Aspose.PDF FOSS para TypeScript. Hereda de: Annotation.
Una anotación /FileAttachment: un ícono en la página cuyo /FS incrusta un archivo.
Esta clase declara 3 métodos para objetos FileAttachmentAnnotation en programas TypeScript. Los métodos disponibles incluyen: Flatten, GetBytes, constructor. Todos los miembros públicos son accesibles para cualquier aplicación TypeScript después de instalar el paquete Aspose.PDF FOSS para TypeScript. Propiedades: Color, Contents, Description, FileName, Flags, Hidden, y 8 más.
Propiedades
| Nombre | Tipo | Acceso | Descripción |
|---|---|---|---|
Icon | string | Lectura/Escritura | Obtiene el icono. |
FileName | string | Lectura | Obtiene el nombre del archivo. |
Description | `string | undefined` | Lectura |
Subtype | string | Lectura | Obtiene el subtipo. |
Rect | `[number, number, number, number] | undefined` | Lectura/Escritura |
Color | `[number, number, number] | undefined` | Lectura/Escritura |
Contents | `string | undefined` | Lectura/Escritura |
Name | `string | undefined` | Lectura/Escritura |
Layer | `Layer | undefined` | Lectura/Escritura |
ModDate | `Date | string | undefined` |
Flags | number | Lectura/Escritura | Obtiene las banderas. |
Print | boolean | Lectura/Escritura | Obtiene la impresión. |
Hidden | boolean | Lectura/Escritura | Obtiene lo oculto. |
Opacity | `number | undefined` | Lectura/Escritura |
Métodos
| Firma | Descripción |
|---|---|
GetBytes() → Uint8Array | Decodifique los bytes incrustados. |
constructor(doc: Document, Dict: PdfDict) | Llama al constructor(doc, Dict) en esta instancia de FileAttachmentAnnotation. |
Flatten() → boolean | Incorpora solo esta anotación en el contenido estático de la página: dibuja su apariencia /AP /N en los /Contents de la página en su /Rect y elimínala de /Annots. |