PdfAttachmentCollection
Add Method (PdfAttachment, PdfDocument, PdfAttachmentRelationship)
|
Adds the specified attachment.
Namespace:
Spire.Pdf.Attachments
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
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
-
Type:
Spire.Pdf.Attachments
PdfAttachment
The attachment.
-
associatedDocument
-
Type:
Spire.Pdf
PdfDocument
The associated document.
-
association
-
Type:
Spire.Pdf.General
PdfAttachmentRelationship
The relationship between attachment and associated document.
Return Value
Type:
Int32
Position of the inserted attachment.
See Also