Click or drag to resize

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
)

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