Attachment

Attachment

概要

Attachment は Aspose.PDF のFOSSにおける TypeScript 用のクラスです。

1つの埋め込みファイルの /Filespec に対するライブハンドル.

このクラスは TypeScript プログラムの Attachment オブジェクト用に5つのメソッドを宣言します。利用可能なメソッドは: GetBytes, GetField, RemoveField, SetField, constructor。すべてのパブリックメンバーは、Aspose.PDF のFOSS for TypeScript パッケージをインストールした後、任意の TypeScript アプリケーションからアクセス可能です。プロパティ: CreationDate, Description, MimeType, ModDate, Name, Size。

プロパティ

名前型アクセス説明
Namestring読み取り名前を取得します。
Description`stringundefined`読み取り
MimeType`stringundefined`読み取り
Size`numberundefined`読み取り
CreationDate`Dateundefined`読み取り
ModDate`Dateundefined`読み取り

メソッド

シグネチャ説明
constructor(doc: Document, Dict: PdfDict, fallbackName: string)この Attachment インスタンスで constructor(doc, Dict, fallbackName) を呼び出します。
GetBytes() → Uint8Array埋め込まれたバイト列をデコードし、FlateDecode が存在する場合は展開します。
GetField(field: string) → `stringnumber
`SetField(field: string, value: stringnumber
RemoveField(field: string)カスタム /CI フィールドの値を削除し、/Type のみが残っている場合は /CI を削除します。
 日本語