API Reference
Class
PdfDocumentAttachments
Existing-document embedded and associated file editing operations.
Inheritance
- Object
- PdfDocumentAttachments
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
- Property PdfDocument.Attachments
Methods
public PdfAttachmentEditResult Add(PdfEmbeddedFile attachment) #Returns:
PdfAttachmentEditResultAdds one attachment.
Parameters
- attachment OfficeIMO.Pdf.PdfEmbeddedFile
public PdfAttachmentEditResult Edit(Action<PdfAttachmentEditSession> edit) #Returns:
PdfAttachmentEditResultApplies a transactional attachment collection edit.
Parameters
- edit System.Action{OfficeIMO.Pdf.PdfAttachmentEditSession}
public PdfAttachmentEditResult Remove(String fileName) #Returns:
PdfAttachmentEditResultRemoves one attachment.
Parameters
- fileName System.String
public PdfAttachmentEditResult Rename(String fileName, String newFileName) #Returns:
PdfAttachmentEditResultRenames one attachment.
Parameters
- fileName System.String
- newFileName System.String
public PdfAttachmentEditResult Replace(String fileName, PdfEmbeddedFile replacement) #Returns:
PdfAttachmentEditResultReplaces one attachment by file name.
Parameters
- fileName System.String
- replacement OfficeIMO.Pdf.PdfEmbeddedFile