Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfAttachmentInfo

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • PdfAttachmentInfo

Usage

Explore 16 API references to this type

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

Accepted by parameters 3

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 int FileSpecObjectNumber { get; } #

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

public int EmbeddedFileObjectNumber { get; } #

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

public int SizeBytes { get; } #

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

public int EncodedSizeBytes { get; } #

Exact encoded attachment stream size stored in the PDF.

public int? 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 int? DecodedSizeBytes { get; } #

Decoded attachment size is unknown during metadata-only inspection. Extract the attachment under PdfReadLimits.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 DateTimeOffset? CreationDate { get; } #

Embedded-file creation date, when readable.

public DateTimeOffset? ModificationDate { get; } #

Embedded-file modification date, when readable.

public bool IsAssociatedFile { get; } #

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