PdfAttachmentEditSession
OfficeIMO.Pdf
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.
Returned or exposed by 4
Accepted by parameters 1
- Method PdfDocumentAttachments.Edit
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
Returns
PdfAttachmentEditSessionExceptions
PdfReadLimitException– The target collection exceeds its aggregate attachment-byte limit.
public PdfAttachmentEditSession Remove(string fileName) #Removes an attachment by file name.
Parameters
- fileName string
Returns
PdfAttachmentEditSessionpublic PdfAttachmentEditSession Remove(PdfAttachmentInfo attachment) #Removes one source attachment by its file-spec and embedded-stream identity.
Parameters
- attachment OfficeIMO.Pdf.PdfAttachmentInfo
Returns
PdfAttachmentEditSessionpublic PdfAttachmentEditSession Rename(string fileName, string newFileName) #Renames an attachment while preserving payload and metadata.
Parameters
- fileName string
- newFileName string
Returns
PdfAttachmentEditSessionpublic PdfAttachmentEditSession Replace(string fileName, PdfEmbeddedFile replacement) #Replaces the attachment identified by file name, admitting the net payload before changing the collection.
Parameters
- fileName string
- replacement OfficeIMO.Pdf.PdfEmbeddedFile
Returns
PdfAttachmentEditSessionExceptions
PdfReadLimitException– The target collection exceeds its aggregate attachment-byte limit.
Inherited Methods
Properties
public IReadOnlyList<PdfEmbeddedFile> Attachments { get; } #Current attachment snapshots in edit order.