Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfAttachmentEditSession

OfficeIMO.Pdf

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

Mutable attachment collection used by one existing-document attachment edit.

Inheritance

  • object
  • PdfAttachmentEditSession

Usage

Explore 5 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 1

Methods

public PdfAttachmentEditSession Add(PdfEmbeddedFile attachment) #

Adds a uniquely named attachment after admitting its payload against the target collection budget.

Parameters

attachment OfficeIMO.Pdf.PdfEmbeddedFile required

Exceptions

Remove 2 overloads
public PdfAttachmentEditSession Remove(string fileName) #

Removes an attachment by file name.

Parameters

fileName string required
public PdfAttachmentEditSession Remove(PdfAttachmentInfo attachment) #

Removes one source attachment by its file-spec and embedded-stream identity.

Parameters

attachment OfficeIMO.Pdf.PdfAttachmentInfo required
public PdfAttachmentEditSession Rename(string fileName, string newFileName) #

Renames an attachment while preserving payload and metadata.

Parameters

fileName string required
newFileName string required
public PdfAttachmentEditSession Replace(string fileName, PdfEmbeddedFile replacement) #

Replaces the attachment identified by file name, admitting the net payload before changing the collection.

Parameters

fileName string required
replacement OfficeIMO.Pdf.PdfEmbeddedFile required

Exceptions

Properties

public IReadOnlyList<PdfEmbeddedFile> Attachments { get; } #

Current attachment snapshots in edit order.