API Reference
Class
PdfAttachmentEditSession
Mutable attachment collection used by one existing-document attachment edit.
Inheritance
- Object
- PdfAttachmentEditSession
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method PdfDocumentAttachments.Edit
Methods
public PdfAttachmentEditSession Add(PdfEmbeddedFile attachment) #Returns:
PdfAttachmentEditSessionAdds a uniquely named attachment.
Parameters
- attachment OfficeIMO.Pdf.PdfEmbeddedFile
public PdfAttachmentEditSession Remove(String fileName) #Returns:
PdfAttachmentEditSessionRemoves an attachment by file name.
Parameters
- fileName System.String
public PdfAttachmentEditSession Rename(String fileName, String newFileName) #Returns:
PdfAttachmentEditSessionRenames an attachment while preserving payload and metadata.
Parameters
- fileName System.String
- newFileName System.String
public PdfAttachmentEditSession Replace(String fileName, PdfEmbeddedFile replacement) #Returns:
PdfAttachmentEditSessionReplaces the attachment identified by file name.
Parameters
- fileName System.String
- replacement OfficeIMO.Pdf.PdfEmbeddedFile
Inherited Methods
Properties
public IReadOnlyList<PdfEmbeddedFile> Attachments { get; } #Current attachment snapshots in edit order.