Table of Contents

Class PdfAttachment

Namespace
MiPdf
Assembly
MiPdf.dll

A file embedded in the document (attachment).

public sealed class PdfAttachment
Inheritance
PdfAttachment
Inherited Members

Properties

Description

Description of the attachment (/Desc of the file specification), or null.

public string? Description { get; }

Property Value

string

FileName

File name (/UF or /F).

public string FileName { get; }

Property Value

string

FileSpec

The file specification dictionary.

public PdfDictionary FileSpec { get; }

Property Value

PdfDictionary

MimeType

MIME type (/Subtype of the embedded file stream).

public string? MimeType { get; }

Property Value

string

ModificationDate

Modification date of the file (/ModDate in /Params of the embedded file stream), or null.

public DateTimeOffset? ModificationDate { get; }

Property Value

DateTimeOffset?

Name

Key in the EmbeddedFiles name tree.

public string Name { get; }

Property Value

string

Relationship

The /AFRelationship entry; Unspecified if missing or unknown.

public AttachmentRelationship Relationship { get; }

Property Value

AttachmentRelationship

Size

Size in bytes as declared in /Params (may be missing).

public long? Size { get; }

Property Value

long?

Methods

GetData()

Returns the file content.

public byte[] GetData()

Returns

byte[]

ToString()

Returns file name, MIME type and size for display.

public override string ToString()

Returns

string