Adds the new file attachment annotation to the PdfPage.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfFileAttachmentAnnotation AddFileAnnotation(
	PdfRectangle bounds,
	PdfFileSpecification fileSpec
)
VB
Public Function AddFileAnnotation ( 
	bounds As PdfRectangle,
	fileSpec As PdfFileSpecification
) As PdfFileAttachmentAnnotation

Parameters

bounds
Type: BitMiracle.Docotic.Pdf.PdfRectangle
The bounds of the file attachment annotation.
fileSpec
Type: BitMiracle.Docotic.Pdf.PdfFileSpecification
The file specification of a file attachment to use in the annotation.

Return Value

Type: PdfFileAttachmentAnnotation
The newly created PdfFileAttachmentAnnotation object.

See Also