Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfAttachmentEditSession

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 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) #
Returns: PdfAttachmentEditSession

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

Parameters

attachment OfficeIMO.Pdf.PdfEmbeddedFile requiredposition: 0

Exceptions

Remove 2 overloads
public PdfAttachmentEditSession Remove(String fileName) #
Returns: PdfAttachmentEditSession

Removes an attachment by file name.

Parameters

fileName System.String requiredposition: 0
public PdfAttachmentEditSession Remove(PdfAttachmentInfo attachment) #
Returns: PdfAttachmentEditSession

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

Parameters

attachment OfficeIMO.Pdf.PdfAttachmentInfo requiredposition: 0
public PdfAttachmentEditSession Rename(String fileName, String newFileName) #
Returns: PdfAttachmentEditSession

Renames an attachment while preserving payload and metadata.

Parameters

fileName System.String requiredposition: 0
newFileName System.String requiredposition: 1
public PdfAttachmentEditSession Replace(String fileName, PdfEmbeddedFile replacement) #
Returns: PdfAttachmentEditSession

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

Parameters

fileName System.String requiredposition: 0
replacement OfficeIMO.Pdf.PdfEmbeddedFile requiredposition: 1

Exceptions

Properties

public IReadOnlyList<PdfEmbeddedFile> Attachments { get; } #

Current attachment snapshots in edit order.