API Reference

Class

PdfAttachmentInfo

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Lightweight metadata for an embedded or associated PDF file attachment without exposing the attachment payload.

Inheritance

  • Object
  • PdfAttachmentInfo

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Properties

public String Name { get; } #

Name-tree key or associated-file fallback name for this attachment.

public String FileName { get; } #

File name from the file specification dictionary.

public String UnicodeFileName { get; } #

Unicode file name from /UF, when present.

public String Description { get; } #

Human-readable file description from /Desc, when present.

public String MimeType { get; } #

MIME type decoded from the embedded file stream /Subtype name, when present.

public PdfAssociatedFileRelationship Relationship { get; } #

Associated-file relationship from /AFRelationship, or Unspecified when absent.

public String Filter { get; } #

PDF stream filter name or comma-separated filter names when present.

public Int32 FileSpecObjectNumber { get; } #

Object number of the file specification dictionary, or 0 for a direct dictionary.

public Int32 EmbeddedFileObjectNumber { get; } #

Object number of the embedded file stream, or 0 for a direct stream.

public Int32 SizeBytes { get; } #

Encoded attachment stream size in bytes. This is a compatibility alias for EncodedSizeBytes; it is not the decoded attachment size when stream filters are present.

public Int32 EncodedSizeBytes { get; } #

Exact encoded attachment stream size stored in the PDF.

public Nullable<Int32> DeclaredSizeBytes { get; } #

Untrusted decoded-size claim from the embedded-file /Params /Size entry, when present. Callers must not use this value as a resource limit.

public Nullable<Int32> DecodedSizeBytes { get; } #

Decoded attachment size is unknown during metadata-only inspection. Extract the attachment under MaxTotalAttachmentBytes and inspect its payload length when the exact value is required.

public String Source { get; } #

Catalog source that referenced this attachment, for example Names/EmbeddedFiles or AF.

public Nullable<DateTimeOffset> CreationDate { get; } #

Embedded-file creation date, when readable.

public Nullable<DateTimeOffset> ModificationDate { get; } #

Embedded-file modification date, when readable.

public Boolean IsAssociatedFile { get; } #

True when the attachment was referenced from the catalog /AF associated-files array.