Table of Contents

AttachmentInfo Class

Definition

Namespace
GleamTech.DocumentUltimate
Assembly
GleamTech.DocumentUltimate.dll

Represents an attachment inside a document.

public class AttachmentInfo
Inheritance
AttachmentInfo

Constructors

AttachmentInfo()

Properties

DateModified

Gets or sets the last modified date of the attachment.

Description

Gets or sets the description of the attachment.

Key

Gets or sets the internal key (unique fileSpec key in PDF) of the attachment. This can have PDF internal folder id e.g "<2>File.docx" or not e.g. "File.docx". Note that this will be generated automatically when writing the PDF.

KeyPath

Gets or sets the key path of the attachment if possible. If Key has PDF internal folder id e.g "<2>File.docx", this will be "Subfolder 2/File.docx" where "File.docx" will come from Name. No subfolder will exist for those beginning with "<0>", as those are in root. Resolving PDF internal folder id is not currently supported so subfolders will be generic like "Subfolder 2". However, this is still useful to detect if attachment is in a subfolder. Note that this will be generated automatically when reading the PDF.

Name

Gets or sets the name of the attachment. This will be file name only e.g. "Subfolder/File.docx" and will not have folder information.

OpenRead

Opens a readable stream for the attachment.

Size

Gets or sets the size of the attachment.