Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfEmbeddedFile

OfficeIMO.Pdf

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

Describes a file embedded in a generated PDF and associated with the document catalog or a canvas structure element.

Inheritance

  • object
  • PdfEmbeddedFile

Usage

Explore 9 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 6

Constructors

public PdfEmbeddedFile(string fileName, byte[] data, string? mimeType = null, PdfAssociatedFileRelationship relationship = Unspecified, string? description = null, DateTimeOffset? creationDate = null, DateTimeOffset? modificationDate = null) #

Creates a PDF embedded file description.

Parameters

fileName string required
data byte[] required
mimeType string? = null optional
relationship OfficeIMO.Pdf.PdfAssociatedFileRelationship = Unspecified optional
description string? = null optional
creationDate System.DateTimeOffset? = null optional
modificationDate System.DateTimeOffset? = null optional

Properties

public string FileName { get; set; } #

Embedded file name as exposed in the PDF name tree.

public byte[] Data { get; } #

Embedded file bytes. The returned array is a defensive copy.

public string? MimeType { get; set; } #

Optional MIME type, for example "application/xml".

public PdfAssociatedFileRelationship Relationship { get; set; } #

Associated-file relationship emitted as /AFRelationship.

public string? Description { get; set; } #

Optional human-readable file description.

public DateTimeOffset? CreationDate { get; set; } #

Optional embedded-file creation date.

public DateTimeOffset? ModificationDate { get; set; } #

Optional embedded-file modification date.