Adds the specified attachment.
Namespace: Spire.Pdf.AttachmentsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public int Add( PdfAttachment attachment, PdfDocument associatedDocument, PdfAttachmentRelationship association )
Public Function Add ( attachment As PdfAttachment, associatedDocument As PdfDocument, association As PdfAttachmentRelationship ) As Integer
public: int Add( PdfAttachment^ attachment, PdfDocument^ associatedDocument, PdfAttachmentRelationship association )
member Add : attachment : PdfAttachment * associatedDocument : PdfDocument * association : PdfAttachmentRelationship -> int
Parameters
- attachment
- PdfAttachment
The attachment.
- associatedDocument
- PdfDocument
The associated document.
- association
- PdfAttachmentRelationship
The relationship between attachment and associated document.
Return Value
Int32Position of the inserted attachment.